Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewBuiltin (0.08 sec)

  1. internal/kms/secret-key.go

    	}
    
    	keyID, b64Key := v[0], v[1]
    	key, err := base64.StdEncoding.DecodeString(b64Key)
    	if err != nil {
    		return nil, err
    	}
    	return NewBuiltin(keyID, key)
    }
    
    // NewBuiltin returns a single-key KMS that derives new DEKs from the
    // given key.
    func NewBuiltin(keyID string, key []byte) (*KMS, error) {
    	if len(key) != 32 {
    		return nil, errors.New("kms: invalid key length " + strconv.Itoa(len(key)))
    	}
    	return &KMS{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top