pub struct StandardEncryption { /* private fields */ }Implementations§
Source§impl StandardEncryption
impl StandardEncryption
pub fn new_with_ephemeral( is_client: bool, preshared_key: Option<Vec<u8>>, ) -> Result<Self, EncryptionError>
Trait Implementations§
Source§impl Debug for StandardEncryption
impl Debug for StandardEncryption
Source§impl Encryption for StandardEncryption
impl Encryption for StandardEncryption
fn args_size(&self) -> u8
fn public_key(&self) -> PublicKey
fn handshake(&mut self, peer: PublicKey) -> Result<(), EncryptionError>
fn authenticator(&self) -> Authenticator
fn authenticate(&mut self, peer: Authenticator) -> Result<(), EncryptionError>
fn encrypt( &mut self, head: &SessionHeader, args: &mut [u8], data: &mut [u8], ) -> Result<(), EncryptionError>
fn decrypt( &mut self, head: &SessionHeader, args: &[u8], data: &mut [u8], ) -> Result<(), EncryptionError>
Auto Trait Implementations§
impl Freeze for StandardEncryption
impl RefUnwindSafe for StandardEncryption
impl Send for StandardEncryption
impl Sync for StandardEncryption
impl Unpin for StandardEncryption
impl UnsafeUnpin for StandardEncryption
impl UnwindSafe for StandardEncryption
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