pub struct MessageIntegrity(pub Vec<u8>);Expand description
The MESSAGE-INTEGRITY key: an HMAC-SHA1 is computed over the message with it.
Built from a short-term password, or from a long-term username/realm/password triple.
Tuple Fields§
§0: Vec<u8>Implementations§
Source§impl MessageIntegrity
impl MessageIntegrity
Sourcepub fn new_long_term_integrity(
username: String,
realm: String,
password: String,
) -> Self
pub fn new_long_term_integrity( username: String, realm: String, password: String, ) -> Self
New_long_term_integrity returns new MessageIntegrity with key for long-term credentials. Password, username, and realm must be SASL-prepared.
Sourcepub fn new_short_term_integrity(password: String) -> Self
pub fn new_short_term_integrity(password: String) -> Self
New_short_term_integrity returns new MessageIntegrity with key for short-term credentials. Password must be SASL-prepared.
Trait Implementations§
Source§impl Clone for MessageIntegrity
impl Clone for MessageIntegrity
Source§fn clone(&self) -> MessageIntegrity
fn clone(&self) -> MessageIntegrity
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 moreSource§impl Default for MessageIntegrity
impl Default for MessageIntegrity
Source§fn default() -> MessageIntegrity
fn default() -> MessageIntegrity
Returns the “default value” for a type. Read more
Source§impl Display for MessageIntegrity
impl Display for MessageIntegrity
Auto Trait Implementations§
impl Freeze for MessageIntegrity
impl RefUnwindSafe for MessageIntegrity
impl Send for MessageIntegrity
impl Sync for MessageIntegrity
impl Unpin for MessageIntegrity
impl UnsafeUnpin for MessageIntegrity
impl UnwindSafe for MessageIntegrity
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