#[repr(u8)]
pub enum Algorithm {
Aes128Ccm,
Aes192Ccm,
Aes256Ccm,
}
Expand description
Valid algorithms for “wrap” (symmetric encryption/key wrapping) keys
AES-128 in Counter with CBC-MAC (CCM) mode
AES-192 in Counter with CBC-MAC (CCM) mode
AES-256 in Counter with CBC-MAC (CCM) mode
Convert an unsigned byte tag into a wrap::Algorithm
(if valid)
Serialize algorithm ID as a byte
Return the size of the given key (as expected by the YubiHSM 2
) in bytes
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Serialize this value into the given Serde serializer. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
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>,