Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EncryptBytes (0.08 sec)

  1. cmd/config.go

    	uuidKV := mustGetUUID() + kvPrefix
    	historyFile := pathJoin(minioConfigHistoryPrefix, uuidKV)
    
    	if GlobalKMS != nil {
    		var err error
    		kv, err = config.EncryptBytes(GlobalKMS, kv, kms.Context{
    			minioMetaBucket: path.Join(minioMetaBucket, historyFile),
    		})
    		if err != nil {
    			return err
    		}
    	}
    	return saveConfig(ctx, objAPI, historyFile, kv)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 23 10:07:06 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. internal/config/crypto.go

    	"github.com/minio/minio/internal/kms"
    	"github.com/secure-io/sio-go"
    	"github.com/secure-io/sio-go/sioutil"
    )
    
    // EncryptBytes encrypts the plaintext with a key managed by KMS.
    // The context is bound to the returned ciphertext.
    //
    // The same context must be provided when decrypting the
    // ciphertext.
    func EncryptBytes(k *kms.KMS, plaintext []byte, context kms.Context) ([]byte, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top