pub trait Encryptable<Ids: KeyIds, Key: KeyId, Output> {
// Required method
fn encrypt(
&self,
ctx: &mut KeyStoreContext<'_, Ids>,
key: Key,
) -> Result<Output, CryptoError>;
}
Expand description
An encryption operation that takes the input value and encrypts it into the output value. Implementations should generally consist of calling Encryptable::encrypt for all the fields of the type.