# Functions
LoadPolicy will load a policy from the provided storage path and set the necessary un-exported variables.
NewEncryptedKeyStorageWrapper takes an EncryptedKeyStorageConfig and returns a new EncryptedKeyStorage object.
No description provided by the author
NewPolicy takes a policy config and returns a Policy with those settings.
# Constants
DefaultCacheSize is used if no cache size is specified for NewEncryptedKeyStorage.
DefaultPrefix is used if no prefix is specified for NewEncryptedKeyStorage.
DefaultVersionTemplate is used when no version template is provided.
EncryptedKeyPolicyVersionTpl is a template that can be used to minimize the amount of data that's stored with the ciphertext.
ErrTooOld is returned whtn the ciphertext or signatures's key version is too old.
golang.org/x/crypto/hkdf.
built-in helper.
Or this one...we need the default of zero to be the original AES256-GCM96.
Or this one...we need the default of zero to be the original AES256-GCM96.
Or this one...we need the default of zero to be the original AES256-GCM96.
Or this one...we need the default of zero to be the original AES256-GCM96.
Or this one...we need the default of zero to be the original AES256-GCM96.
Or this one...we need the default of zero to be the original AES256-GCM96.
# Variables
ErrNilPolicy is returned if the provided policy is nil.
ErrNilStorage is returned if the provided storage is nil.
ErrPolicyConvergentEncryption is returned if the provided policy does not use convergent encryption.
ErrPolicyConvergentVersion is returned if the provided policy does not use a new enough convergent version.
ErrPolicyDerivedKeys is returned if the provided policy does not use derived keys.
# Structs
No description provided by the author
EncryptedKeyStorageConfig is used to configure an EncryptedKeyStorage object.
No description provided by the author
No description provided by the author
KeyEntry stores the key and metadata.
No description provided by the author
Policy is the struct used to store metadata.
PolicyConfig is used to create a new policy.
PolicyRequest holds values used when requesting a policy.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author