Struct snmp_usm::DesPrivKey
source · 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 copy 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 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<DesPrivKey<'a, D>> for DesPrivKey<'a, D>
impl<'a, D: PartialEq> PartialEq<DesPrivKey<'a, D>> for DesPrivKey<'a, D>
source§fn eq(&self, other: &DesPrivKey<'a, D>) -> bool
fn eq(&self, other: &DesPrivKey<'a, D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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