DecryptWithExplicitEncryptionKey

Trait DecryptWithExplicitEncryptionKey 

Source
pub trait DecryptWithExplicitEncryptionKey {
    // Required method
    fn decrypt_data_with_encryption_key(
        cipher: &Aes256Gcm,
        encryption_key: &[u8],
        data: &[u8],
    ) -> CryptoKeystoreResult<Vec<u8>>;
}
Expand description

This trait uses an explicitly-set decryption key to decrypt some data.

This should rarely be used.

Required Methods§

Source

fn decrypt_data_with_encryption_key( cipher: &Aes256Gcm, encryption_key: &[u8], data: &[u8], ) -> CryptoKeystoreResult<Vec<u8>>

Decrypt some data with an encryption key (see EncryptionKey) instead of the instance’s primary key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§