Documentation
¶
Overview ¶
Package storagekey encrypts recoverable secrets stored by control.
Index ¶
- type Keyring
- func (k *Keyring) CurrentID() string
- func (k *Keyring) IPPolicyKey(keyID, purpose string) ([32]byte, error)
- func (k *Keyring) Open(keyID, context string, ciphertext []byte) ([]byte, bool, error)
- func (k *Keyring) PreviousID() string
- func (k *Keyring) Seal(context string, plaintext []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keyring ¶
type Keyring struct {
// contains filtered or unexported fields
}
Keyring holds the current storage key and an optional previous key used only while ciphertext is being re-encrypted.
func (*Keyring) IPPolicyKey ¶
IPPolicyKey derives a purpose-specific verifier without exposing the storage key.