MasterKey provides a way of securing the key used to encrypt the Tree by encrypting and decrypting said key.
| 2 | |
| 3 | // MasterKey provides a way of securing the key used to encrypt the Tree by encrypting and decrypting said key. |
| 4 | type MasterKey interface { |
| 5 | Encrypt(dataKey []byte) error |
| 6 | EncryptIfNeeded(dataKey []byte) error |
| 7 | EncryptedDataKey() []byte |
| 8 | SetEncryptedDataKey([]byte) |
| 9 | Decrypt() ([]byte, error) |
| 10 | NeedsRotation() bool |
| 11 | ToString() string |
| 12 | ToMap() map[string]interface{} |
| 13 | TypeToIdentifier() string |
| 14 | } |
no outgoing calls
no test coverage detected