pub struct Sigma2Randomness<'a> {
pub ephemeral: &'a [u8; 32],
pub responder: &'a [u8; 32],
pub resumption: &'a [u8; 16],
}Available on crate feature
rustcrypto only.Expand description
The three random values answering a Sigma1 consumes (§4.14.2.3, §4.21).
Named rather than positional because they are three byte arrays of two different lengths that a caller draws from one source: passed in the wrong order they still type-check where the lengths agree, and the failure is a handshake that completes and a session nobody else can address. Randomness is a parameter throughout this crate, so the caller draws them — this only says which is which.
Fields§
§ephemeral: &'a [u8; 32]The responder’s ephemeral key material.
responder: &'a [u8; 32]responderRandom, which the transcript covers.
resumption: &'a [u8; 16]The resumption id this session would be resumed by.
Trait Implementations§
Source§impl<'a> Clone for Sigma2Randomness<'a>
impl<'a> Clone for Sigma2Randomness<'a>
impl<'a> Copy for Sigma2Randomness<'a>
Auto Trait Implementations§
impl<'a> Forget for Sigma2Randomness<'a>
impl<'a> Freeze for Sigma2Randomness<'a>
impl<'a> Move for Sigma2Randomness<'a>
impl<'a> RefUnwindSafe for Sigma2Randomness<'a>
impl<'a> Send for Sigma2Randomness<'a>
impl<'a> Sync for Sigma2Randomness<'a>
impl<'a> Unpin for Sigma2Randomness<'a>
impl<'a> UnsafeUnpin for Sigma2Randomness<'a>
impl<'a> UnwindSafe for Sigma2Randomness<'a>
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