pub struct ScramSecrets {
pub iters: u32,
pub salt: [u8; 16],
pub stored_key: [u8; 32],
pub server_key: [u8; 32],
}Expand description
SCRAM-SHA-256 stored credentials per RFC 5802 §5.
salt and iters are sent to the client in server-first;
stored_key and server_key are kept secret and used in the
final-message verification.
Fields§
§iters: u32§salt: [u8; 16]§stored_key: [u8; 32]§server_key: [u8; 32]Trait Implementations§
Source§impl Clone for ScramSecrets
impl Clone for ScramSecrets
Source§fn clone(&self) -> ScramSecrets
fn clone(&self) -> ScramSecrets
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 moreAuto Trait Implementations§
impl Freeze for ScramSecrets
impl RefUnwindSafe for ScramSecrets
impl Send for ScramSecrets
impl Sync for ScramSecrets
impl Unpin for ScramSecrets
impl UnsafeUnpin for ScramSecrets
impl UnwindSafe for ScramSecrets
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