Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DecryptBytes (0.17 sec)

  1. internal/config/crypto.go

    	if err != nil {
    		return nil, err
    	}
    	return io.ReadAll(ciphertext)
    }
    
    // DecryptBytes decrypts the ciphertext using a key managed by the KMS.
    // The same context that have been used during encryption must be
    // provided.
    func DecryptBytes(k *kms.KMS, ciphertext []byte, context kms.Context) ([]byte, error) {
    	plaintext, err := Decrypt(k, bytes.NewReader(ciphertext), context)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. cmd/iam-object-store.go

    	if err == nil {
    		return pdata, nil
    	}
    	if GlobalKMS != nil {
    		pdata, err = config.DecryptBytes(GlobalKMS, data, kms.Context{
    			minioMetaBucket: path.Join(minioMetaBucket, objPath),
    		})
    		if err == nil {
    			return pdata, nil
    		}
    		pdata, err = config.DecryptBytes(GlobalKMS, data, kms.Context{
    			minioMetaBucket: objPath,
    		})
    		if err == nil {
    			return pdata, nil
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top