#[repr(u16)]pub enum PasswordAlgorithm {
Md5 = 1,
Sha256 = 2,
}Expand description
The PASSWORD-ALGORITHM attribute is present only in requests. It contains the algorithm that the server must use to derive a key from the long-term password.
The set of known algorithms is maintained by IANA. The initial set defined by this specification is found in Section 18.5.
The attribute contains an algorithm number and variable length parameters. The algorithm number is a 16-bit value as defined in Section 18.5. The parameters starts with the length (prior to padding) of the parameters as a 16-bit value, followed by the parameters that are specific to the algorithm. The parameters are padded to a 32-bit boundary, in the same manner as an attribute. Similarly, the padding bits MUST be set to zero on sending and MUST be ignored by the receiver.
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Algorithm | Algorithm Parameters Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Algorithm Parameters (variable) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Variants§
Trait Implementations§
Source§impl<'a> Attribute<'a> for PasswordAlgorithm
impl<'a> Attribute<'a> for PasswordAlgorithm
Source§const TYPE: AttributeType = AttributeType::PasswordAlgorithm
const TYPE: AttributeType = AttributeType::PasswordAlgorithm
type Error = Error
Source§type Item = PasswordAlgorithm
type Item = PasswordAlgorithm
Source§impl Clone for PasswordAlgorithm
impl Clone for PasswordAlgorithm
Source§fn clone(&self) -> PasswordAlgorithm
fn clone(&self) -> PasswordAlgorithm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PasswordAlgorithm
impl Debug for PasswordAlgorithm
Source§impl From<PasswordAlgorithm> for PasswordAlgorithm
impl From<PasswordAlgorithm> for PasswordAlgorithm
Source§fn from(val: PasswordAlgorithm) -> Self
fn from(val: PasswordAlgorithm) -> Self
Source§impl PartialEq for PasswordAlgorithm
impl PartialEq for PasswordAlgorithm
impl Copy for PasswordAlgorithm
impl Eq for PasswordAlgorithm
impl StructuralPartialEq for PasswordAlgorithm
Auto Trait Implementations§
impl Freeze for PasswordAlgorithm
impl RefUnwindSafe for PasswordAlgorithm
impl Send for PasswordAlgorithm
impl Sync for PasswordAlgorithm
impl Unpin for PasswordAlgorithm
impl UnwindSafe for PasswordAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request