Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 559 for contexts (0.27 sec)

  1. internal/kms/single-key.go

    		}
    	}
    	return plaintext, nil
    }
    
    func (kms secretKey) DecryptAll(_ context.Context, keyID string, ciphertexts [][]byte, contexts []Context) ([][]byte, error) {
    	plaintexts := make([][]byte, 0, len(ciphertexts))
    	for i := range ciphertexts {
    		plaintext, err := kms.DecryptKey(keyID, ciphertexts[i], contexts[i])
    		if err != nil {
    			return nil, err
    		}
    		plaintexts = append(plaintexts, plaintext)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  2. internal/kms/kms.go

    	// by the key ID. The context must match the context value
    	// used to generate the ciphertext.
    	DecryptKey(keyID string, ciphertext []byte, context Context) ([]byte, error)
    
    	// DecryptAll decrypts all ciphertexts with the key referenced
    	// by the key ID. The contexts must match the context value
    	// used to generate the ciphertexts.
    	DecryptAll(ctx context.Context, keyID string, ciphertext [][]byte, context []Context) ([][]byte, error)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. internal/crypto/sse-s3.go

    		if i > 0 && keyID != keyIDs[i-1] {
    			sameKeyID = false
    		}
    	}
    	if sameKeyID {
    		contexts := make([]kms.Context, 0, len(keyIDs))
    		for i := range buckets {
    			contexts = append(contexts, kms.Context{buckets[i]: path.Join(buckets[i], objects[i])})
    		}
    		unsealKeys, err := k.DecryptAll(ctx, keyIDs[0], kmsKeys, contexts)
    		if err != nil {
    			return nil, err
    		}
    		keys := make([]ObjectKey, len(unsealKeys))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. internal/kms/kes.go

    type Logger interface {
    	LogOnceIf(ctx context.Context, err error, id string, errKind ...interface{})
    	LogIf(ctx context.Context, err error, errKind ...interface{})
    }
    
    // RefreshKey checks the validity of the KMS Master Key
    func (c *kesClient) RefreshKey(ctx context.Context, logger Logger) bool {
    	c.lock.RLock()
    	defer c.lock.RUnlock()
    
    	validKey := false
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  5. cmd/api-response.go

    		if object.ETag != "" {
    			content.ETag = "\"" + object.ETag + "\""
    		}
    		content.Size = object.Size
    		if object.StorageClass != "" {
    			content.StorageClass = object.StorageClass
    		} else {
    			content.StorageClass = globalMinioDefaultStorageClass
    		}
    		content.Owner = owner
    		contents = append(contents, content)
    	}
    	data.Name = bucket
    	data.Contents = contents
    
    	data.EncodingType = encodingType
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  6. cmd/handler-utils.go

    }
    
    // extractMetadataFromReq extracts metadata from HTTP header and HTTP queryString.
    func extractMetadataFromReq(ctx context.Context, r *http.Request) (metadata map[string]string, err error) {
    	return extractMetadata(ctx, textproto.MIMEHeader(r.Form), textproto.MIMEHeader(r.Header))
    }
    
    func extractMetadata(ctx context.Context, mimesHeader ...textproto.MIMEHeader) (metadata map[string]string, err error) {
    	metadata = make(map[string]string)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  7. internal/grid/handlers.go

    func setCaller(ctx context.Context, cl *RemoteClient) context.Context {
    	return context.WithValue(ctx, ctxCallerKey{}, cl)
    }
    
    func setSubroute(ctx context.Context, s string) context.Context {
    	return context.WithValue(ctx, ctxSubrouteKey{}, s)
    }
    
    // StreamTypeHandler is a type safe handler for streaming requests.
    type StreamTypeHandler[Payload, Req, Resp RoundTripper] struct {
    	WithPayload bool
    
    	// Override the default capacities (1)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  8. cmd/bucket-lifecycle.go

    // storage specified by the transition ARN, the metadata is left behind on source cluster and original content
    // is moved to the transition tier. Note that in the case of encrypted objects, entire encrypted stream is moved
    // to the transition tier without decrypting or re-encrypting.
    func transitionObject(ctx context.Context, objectAPI ObjectLayer, oi ObjectInfo, lae lcAuditEvent) (err error) {
    	defer func() {
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  9. cmd/storage-rest-client.go

    func (client *storageRESTClient) MakeVolBulk(ctx context.Context, volumes ...string) (err error) {
    	return errInvalidArgument
    }
    
    // MakeVol - create a volume on a remote disk.
    func (client *storageRESTClient) MakeVol(ctx context.Context, volume string) (err error) {
    	return errInvalidArgument
    }
    
    // ListVols - List all volumes on a remote disk.
    func (client *storageRESTClient) ListVols(ctx context.Context) (vols []VolInfo, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  10. cmd/auth-handler_test.go

    		// Empty Content-Md5 header.
    		{mustNewSignedEmptyMD5Request(http.MethodPut, "http://127.0.0.1:9000/", 5, bytes.NewReader([]byte("hello")), t), ErrInvalidDigest},
    		// Short Content-Md5 header.
    		{mustNewSignedShortMD5Request(http.MethodPut, "http://127.0.0.1:9000/", 5, bytes.NewReader([]byte("hello")), t), ErrInvalidDigest},
    		// When request is properly signed, but has bad Content-MD5 header.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top