pub enum PrivProtocol {
Des,
Des3,
Aes128,
Aes192,
Aes256,
}Expand description
Privacy protocol identifiers.
Variants§
Des
DES-CBC (RFC 3414).
Insecure: 56-bit keys are brute-forceable. Also slower than AES, which benefits from hardware acceleration.
Des3
3DES-EDE in “Outside” CBC mode (draft-reeder-snmpv3-usm-3desede-00).
Uses three 56-bit keys for 168-bit effective security (112-bit against meet-in-the-middle). Slower than AES and lacks hardware acceleration.
Aes128
AES-128-CFB (RFC 3826)
Aes192
AES-192-CFB (RFC 3826)
Aes256
AES-256-CFB (RFC 3826)
Implementations§
Trait Implementations§
Source§impl Clone for PrivProtocol
impl Clone for PrivProtocol
Source§fn clone(&self) -> PrivProtocol
fn clone(&self) -> PrivProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrivProtocol
Source§impl Debug for PrivProtocol
impl Debug for PrivProtocol
Source§impl Display for PrivProtocol
impl Display for PrivProtocol
impl Eq for PrivProtocol
Source§impl FromStr for PrivProtocol
impl FromStr for PrivProtocol
Source§impl Hash for PrivProtocol
impl Hash for PrivProtocol
Source§impl Ord for PrivProtocol
impl Ord for PrivProtocol
Source§fn cmp(&self, other: &PrivProtocol) -> Ordering
fn cmp(&self, other: &PrivProtocol) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrivProtocol
impl PartialEq for PrivProtocol
Source§impl PartialOrd for PrivProtocol
impl PartialOrd for PrivProtocol
impl StructuralPartialEq for PrivProtocol
Auto Trait Implementations§
impl Freeze for PrivProtocol
impl RefUnwindSafe for PrivProtocol
impl Send for PrivProtocol
impl Sync for PrivProtocol
impl Unpin for PrivProtocol
impl UnsafeUnpin for PrivProtocol
impl UnwindSafe for PrivProtocol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more