[−][src]Struct snmp_usm::Aes128PrivKey
Privacy key used for AES-128 encryption.
It is constructed from a Localizedkey.
Authentication must always be performed when encryption is requested.
Trait Implementations
impl<'a, D: Clone> Clone for Aes128PrivKey<'a, D>
[src]
fn clone(&self) -> Aes128PrivKey<'a, D>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, D: Debug> Debug for Aes128PrivKey<'a, D>
[src]
impl<'a, D: Eq> Eq for Aes128PrivKey<'a, D>
[src]
impl<'a, D: Hash> Hash for Aes128PrivKey<'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<Aes128PrivKey<'a, D>> for Aes128PrivKey<'a, D>
[src]
fn eq(&self, other: &Aes128PrivKey<'a, D>) -> bool
[src]
fn ne(&self, other: &Aes128PrivKey<'a, D>) -> bool
[src]
impl<'a, D> PrivKey for Aes128PrivKey<'a, D>
[src]
type Salt = u64
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 Aes128PrivKey<'a, D>
[src]
impl<'a, D> StructuralPartialEq for Aes128PrivKey<'a, D>
[src]
impl<'a, D> WithLocalizedKey<'a, D> for Aes128PrivKey<'a, D>
[src]
fn with_localized_key(localized_key: LocalizedKey<'a, D>) -> Self
[src]
Auto Trait Implementations
impl<'a, D> RefUnwindSafe for Aes128PrivKey<'a, D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<'a, D> Send for Aes128PrivKey<'a, D> where
D: Sync,
D: Sync,
impl<'a, D> Sync for Aes128PrivKey<'a, D> where
D: Sync,
D: Sync,
impl<'a, D> Unpin for Aes128PrivKey<'a, D>
impl<'a, D> UnwindSafe for Aes128PrivKey<'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>,