[−][src]Struct snmp_usm::DesPrivKey
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
impl<'a, D: Clone> Clone for DesPrivKey<'a, D>
[src]
fn clone(&self) -> DesPrivKey<'a, D>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, D: Debug> Debug for DesPrivKey<'a, D>
[src]
impl<'a, D: Eq> Eq for DesPrivKey<'a, D>
[src]
impl<'a, D: Hash> Hash for DesPrivKey<'a, D>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, D: PartialEq> PartialEq<DesPrivKey<'a, D>> for DesPrivKey<'a, D>
[src]
fn eq(&self, other: &DesPrivKey<'a, D>) -> bool
[src]
fn ne(&self, other: &DesPrivKey<'a, D>) -> bool
[src]
impl<'a, D> PrivKey for DesPrivKey<'a, D>
[src]
type Salt = u32
The type of the "salt" used for encryption.
fn encrypt(
&self,
scoped_pdu: Vec<u8>,
security_params: &SecurityParams,
salt: Self::Salt
) -> (Vec<u8>, Vec<u8>)
[src]
&self,
scoped_pdu: Vec<u8>,
security_params: &SecurityParams,
salt: Self::Salt
) -> (Vec<u8>, Vec<u8>)
fn decrypt(
&self,
encrypted_scoped_pdu: Vec<u8>,
security_params: &SecurityParams
) -> SecurityResult<Vec<u8>>
[src]
&self,
encrypted_scoped_pdu: Vec<u8>,
security_params: &SecurityParams
) -> SecurityResult<Vec<u8>>
impl<'a, D> StructuralEq for DesPrivKey<'a, D>
[src]
impl<'a, D> StructuralPartialEq for DesPrivKey<'a, D>
[src]
impl<'a, D> WithLocalizedKey<'a, D> for DesPrivKey<'a, D>
[src]
fn with_localized_key(localized_key: LocalizedKey<'a, D>) -> Self
[src]
Auto Trait Implementations
impl<'a, D> RefUnwindSafe for DesPrivKey<'a, D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<'a, D> Send for DesPrivKey<'a, D> where
D: Sync,
D: Sync,
impl<'a, D> Sync for DesPrivKey<'a, D> where
D: Sync,
D: Sync,
impl<'a, D> Unpin for DesPrivKey<'a, D>
impl<'a, D> UnwindSafe for DesPrivKey<'a, D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,