Struct biscuit::jwe::CekAlgorithmHeader
source · pub struct CekAlgorithmHeader {
pub nonce: Option<Vec<u8>>,
pub tag: Option<Vec<u8>>,
}
Expand description
Headers specific to the Key management algorithm used. Users should typically not construct these fields as they will be filled in automatically when encrypting and stripped when decrypting
Fields§
§nonce: Option<Vec<u8>>
Header for AES GCM Keywrap algorithm. The initialization vector, or nonce used in the encryption
tag: Option<Vec<u8>>
Header for AES GCM Keywrap algorithm. The authentication tag resulting from the encryption
Trait Implementations§
source§impl Clone for CekAlgorithmHeader
impl Clone for CekAlgorithmHeader
source§fn clone(&self) -> CekAlgorithmHeader
fn clone(&self) -> CekAlgorithmHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CekAlgorithmHeader
impl Debug for CekAlgorithmHeader
source§impl Default for CekAlgorithmHeader
impl Default for CekAlgorithmHeader
source§fn default() -> CekAlgorithmHeader
fn default() -> CekAlgorithmHeader
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CekAlgorithmHeader
impl<'de> Deserialize<'de> for CekAlgorithmHeader
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for CekAlgorithmHeader
impl PartialEq for CekAlgorithmHeader
source§fn eq(&self, other: &CekAlgorithmHeader) -> bool
fn eq(&self, other: &CekAlgorithmHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CekAlgorithmHeader
impl Serialize for CekAlgorithmHeader
impl Eq for CekAlgorithmHeader
impl StructuralEq for CekAlgorithmHeader
impl StructuralPartialEq for CekAlgorithmHeader
Auto Trait Implementations§
impl RefUnwindSafe for CekAlgorithmHeader
impl Send for CekAlgorithmHeader
impl Sync for CekAlgorithmHeader
impl Unpin for CekAlgorithmHeader
impl UnwindSafe for CekAlgorithmHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.