pub struct KkAeadPacket {
pub aad: Vec<u8>,
pub ciphertext: Vec<u8>,
pub entropy_snapshot: EntropySnapshot,
pub commitment: TemporalCommitment,
}Expand description
A KK-AEAD packet: ciphertext + authenticated associated data.
Contains:
- Associated data (AAD) - transmitted in the clear, authenticated
- The ciphertext (XOR of plaintext with per-symbol key stream)
- The entropy snapshot ε (the unrepeatable moment)
- Temporal commitment (binds ciphertext + AAD to the entropic moment)
The AAD is NOT encrypted but IS integrity-protected by the commitment. Any modification to the AAD or ciphertext will be detected on decode.
Fields§
§aad: Vec<u8>Associated data, authenticated but not encrypted
ciphertext: Vec<u8>The encoded bytes
entropy_snapshot: EntropySnapshotThe entropy snapshot
commitment: TemporalCommitmentTemporal commitment binding ciphertext + AAD to the entropic moment
Implementations§
Trait Implementations§
Source§impl Clone for KkAeadPacket
impl Clone for KkAeadPacket
Source§fn clone(&self) -> KkAeadPacket
fn clone(&self) -> KkAeadPacket
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for KkAeadPacket
impl RefUnwindSafe for KkAeadPacket
impl Send for KkAeadPacket
impl Sync for KkAeadPacket
impl Unpin for KkAeadPacket
impl UnsafeUnpin for KkAeadPacket
impl UnwindSafe for KkAeadPacket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more