pub struct WrappedDek {
pub key_id: String,
pub ciphertext: Vec<u8>,
}Expand description
Wrapped DEK as stored in the S4E4 frame.
key_id identifies which KEK in the backend was used to wrap
ciphertext. Both fields are AAD-authenticated by the outer
AES-GCM tag in the S4E4 frame, so an attacker can’t substitute a
different key_id to make the gateway try a different KEK.
Fields§
§key_id: StringKEK identifier, caller-meaningful. For LocalKms this is
the basename of the .kek file (without extension); for
[aws::AwsKms] it is the KMS key ARN or alias.
ciphertext: Vec<u8>Encrypted DEK bytes. Format is backend-defined — for
LocalKms it is nonce(12) || ciphertext(32) || tag(16);
for AWS KMS it is the opaque blob returned by GenerateDataKey.
Trait Implementations§
Source§impl Clone for WrappedDek
impl Clone for WrappedDek
Source§fn clone(&self) -> WrappedDek
fn clone(&self) -> WrappedDek
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WrappedDek
impl Debug for WrappedDek
Source§impl PartialEq for WrappedDek
impl PartialEq for WrappedDek
Source§fn eq(&self, other: &WrappedDek) -> bool
fn eq(&self, other: &WrappedDek) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WrappedDek
impl StructuralPartialEq for WrappedDek
Auto Trait Implementations§
impl Freeze for WrappedDek
impl RefUnwindSafe for WrappedDek
impl Send for WrappedDek
impl Sync for WrappedDek
impl Unpin for WrappedDek
impl UnsafeUnpin for WrappedDek
impl UnwindSafe for WrappedDek
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.