pub trait EncryptWithExplicitEncryptionKey {
// Required method
fn encrypt_data_with_encryption_key(
&self,
cipher: &Aes256Gcm,
data: &[u8],
) -> CryptoKeystoreResult<Vec<u8>>;
}Expand description
This trait uses the explicitly-set encryption key to encrypt some data.
This should rarely be used.
Required Methods§
Sourcefn encrypt_data_with_encryption_key(
&self,
cipher: &Aes256Gcm,
data: &[u8],
) -> CryptoKeystoreResult<Vec<u8>>
fn encrypt_data_with_encryption_key( &self, cipher: &Aes256Gcm, data: &[u8], ) -> CryptoKeystoreResult<Vec<u8>>
Encrypt some data with an encryption key (see EncryptionKey) instead of the instance’s primary key.