pub struct DesPrivKey<'a, D> { /* private fields */ }
Expand description
Privacy key used for DES encryption.
It is constructed from a Localizedkey. When decrypting the padding is not removed.
Authentication must always be performed when encryption is requested.
Trait Implementations§
Source§impl<'a, D: Clone> Clone for DesPrivKey<'a, D>
impl<'a, D: Clone> Clone for DesPrivKey<'a, D>
Source§fn clone(&self) -> DesPrivKey<'a, D>
fn clone(&self) -> DesPrivKey<'a, D>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, D: Debug> Debug for DesPrivKey<'a, D>
impl<'a, D: Debug> Debug for DesPrivKey<'a, D>
Source§impl<'a, D: Hash> Hash for DesPrivKey<'a, D>
impl<'a, D: Hash> Hash for DesPrivKey<'a, D>
Source§impl<'a, D: PartialEq> PartialEq for DesPrivKey<'a, D>
impl<'a, D: PartialEq> PartialEq for DesPrivKey<'a, D>
Source§impl<'a, D> PrivKey for DesPrivKey<'a, D>
impl<'a, D> PrivKey for DesPrivKey<'a, D>
Source§fn encrypt(
&self,
scoped_pdu: Vec<u8>,
security_params: &SecurityParams,
salt: Self::Salt,
) -> (Vec<u8>, Vec<u8>)
fn encrypt( &self, scoped_pdu: Vec<u8>, security_params: &SecurityParams, salt: Self::Salt, ) -> (Vec<u8>, Vec<u8>)
Encrypts a scoped PDU in place. Read more
Source§fn decrypt(
&self,
encrypted_scoped_pdu: Vec<u8>,
security_params: &SecurityParams,
) -> SecurityResult<Vec<u8>>
fn decrypt( &self, encrypted_scoped_pdu: Vec<u8>, security_params: &SecurityParams, ) -> SecurityResult<Vec<u8>>
Decrypts an encrypted scoped PDU in place. Read more
Source§impl<'a, D> WithLocalizedKey<'a, D> for DesPrivKey<'a, D>
impl<'a, D> WithLocalizedKey<'a, D> for DesPrivKey<'a, D>
Source§fn with_localized_key(localized_key: LocalizedKey<'a, D>) -> Self
fn with_localized_key(localized_key: LocalizedKey<'a, D>) -> Self
Constructs a new type with a localized key. Read more
impl<'a, D: Eq> Eq for DesPrivKey<'a, D>
impl<'a, D> StructuralPartialEq for DesPrivKey<'a, D>
Auto Trait Implementations§
impl<'a, D> Freeze for DesPrivKey<'a, D>
impl<'a, D> RefUnwindSafe for DesPrivKey<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for DesPrivKey<'a, D>where
D: Sync,
impl<'a, D> Sync for DesPrivKey<'a, D>where
D: Sync,
impl<'a, D> Unpin for DesPrivKey<'a, D>
impl<'a, D> UnwindSafe for DesPrivKey<'a, D>where
D: RefUnwindSafe,
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