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