Struct fxfs_crypto::WrappedKeyV32
source · pub struct WrappedKeyV32 {
pub wrapping_key_id: u64,
pub key: WrappedKeyBytesV32,
}
Fields§
§wrapping_key_id: u64
The identifier of the wrapping key. The identifier has meaning to whatever is doing the unwrapping.
key: WrappedKeyBytesV32
AES 256 requires a 512 bit key, which is made of two 256 bit keys, one for the data and one for the tweak. It is safe to use the same 256 bit key for both (see https://csrc.nist.gov/CSRC/media/Projects/Block-Cipher-Techniques/documents/BCM/Comments/XTS/follow-up_XTS_comments-Ball.pdf) which is what we do here. Since the key is wrapped with AES-GCM-SIV, there are an additional 16 bytes paid per key (so the actual key material is 32 bytes once unwrapped).
Trait Implementations§
source§impl Clone for WrappedKeyV32
impl Clone for WrappedKeyV32
source§fn clone(&self) -> WrappedKeyV32
fn clone(&self) -> WrappedKeyV32
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 WrappedKeyV32
impl Debug for WrappedKeyV32
source§impl<'de> Deserialize<'de> for WrappedKeyV32
impl<'de> Deserialize<'de> for WrappedKeyV32
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 WrappedKeyV32
impl PartialEq for WrappedKeyV32
source§fn eq(&self, other: &WrappedKeyV32) -> bool
fn eq(&self, other: &WrappedKeyV32) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WrappedKeyV32
impl Serialize for WrappedKeyV32
source§impl TypeFingerprint for WrappedKeyV32
impl TypeFingerprint for WrappedKeyV32
fn fingerprint() -> String
impl StructuralPartialEq for WrappedKeyV32
Auto Trait Implementations§
impl Freeze for WrappedKeyV32
impl RefUnwindSafe for WrappedKeyV32
impl Send for WrappedKeyV32
impl Sync for WrappedKeyV32
impl Unpin for WrappedKeyV32
impl UnwindSafe for WrappedKeyV32
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