pub struct Key { /* fields omitted */ }
Expand description
A Key that allows to encrypt and decrypt messages.
Encrypts bytes generating returning the generated Mac-
Decrypts data, returning an Error if the Mac’s do not
match.
This should only be used in test.
Using the same key can lead to nonce reuse
which makes the encryption or decryption
unsecure.
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,