Documentation ¶
Overview ¶
Copyright © 2019, Oracle and/or its affiliates.
Index ¶
- Constants
- type Wrapper
- func (k *Wrapper) Decrypt(ctx context.Context, in *wrapping.EncryptedBlobInfo, aad []byte) ([]byte, error)
- func (k *Wrapper) Encrypt(ctx context.Context, plaintext, aad []byte) (*wrapping.EncryptedBlobInfo, error)
- func (k *Wrapper) Finalize(context.Context) error
- func (k *Wrapper) HMACKeyID() string
- func (k *Wrapper) Init(context.Context) error
- func (k *Wrapper) KeyID() string
- func (k *Wrapper) SetConfig(config map[string]string) (map[string]string, error)
- func (k *Wrapper) Type() string
Constants ¶
View Source
const ( // OCI KMS key ID to use for encryption and decryption EnvOCIKMSWrapperKeyID = "OCIKMS_WRAPPER_KEY_ID" EnvVaultOCIKMSSealKeyID = "VAULT_OCIKMS_SEAL_KEY_ID" // OCI KMS crypto endpoint to use for encryption and decryption EnvOCIKMSWrapperCryptoEndpoint = "OCIKMS_WRAPPER_CRYPTO_ENDPOINT" EnvVaultOCIKMSSealCryptoEndpoint = "VAULT_OCIKMS_CRYPTO_ENDPOINT" // OCI KMS management endpoint to manage keys EnvOCIKMSWrapperManagementEndpoint = "OCIKMS_WRAPPER_MANAGEMENT_ENDPOINT" EnvVaultOCIKMSSealManagementEndpoint = "VAULT_OCIKMS_MANAGEMENT_ENDPOINT" // Maximum number of retries KMSMaximumNumberOfRetries = 5 // keyID config KMSConfigKeyID = "key_id" // cryptoEndpoint config KMSConfigCryptoEndpoint = "crypto_endpoint" // managementEndpoint config KMSConfigManagementEndpoint = "management_endpoint" // authTypeAPIKey config KMSConfigAuthTypeAPIKey = "auth_type_api_key" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.