pub struct Shake<T>{ /* private fields */ }
Implementations§
source§impl<T> Shake<T>
impl<T> Shake<T>
pub fn new(ns: StaticSecret, random: T) -> Self
pub fn decrypt(&mut self, m: &mut [u8]) -> Result<()>
pub fn encrypt(&mut self, m: &mut [u8]) -> Result<()>
pub fn transport(self) -> Result<(Key, Key)>
pub fn make_message_aa( &mut self, m: &mut [u8], rs: PublicKey ) -> Result<StaticSecret>
pub fn make_message_ab(&mut self, m: &mut [u8], rs: PublicKey) -> Result<()>
pub fn make_message_a( &mut self, m: &mut [u8], rs: PublicKey ) -> Result<StaticSecret>
pub fn read_message_aa(&mut self, m: &mut [u8]) -> Result<PublicKey>
pub fn read_message_ab(&mut self, m: &mut [u8]) -> Result<PublicKey>
pub fn read_message_a(&mut self, m: &mut [u8]) -> Result<State>
pub fn make_message_ba( &mut self, m: &mut [u8], re: PublicKey, rs: PublicKey ) -> Result<()>
pub fn make_message_b(self, m: &mut [u8], state: State) -> Result<Transport>
pub fn read_message_ba(&mut self, m: &mut [u8], ne: StaticSecret) -> Result<()>
pub fn read_message_b(self, m: &mut [u8], ne: StaticSecret) -> Result<Transport>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Shake<T>where
T: RefUnwindSafe,
impl<T> Send for Shake<T>where
T: Send,
impl<T> Sync for Shake<T>where
T: Sync,
impl<T> Unpin for Shake<T>where
T: Unpin,
impl<T> UnwindSafe for Shake<T>where
T: UnwindSafe,
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