pub struct Srp {
pub session_key: Vec<u8>,
/* private fields */
}
Fields§
§session_key: Vec<u8>
Implementations§
Source§impl Srp
impl Srp
pub fn new( n: &[u8], g: &[u8], server_ephemeral: &[u8; 32], salt: [u8; 32], ) -> Self
pub fn public_ephemeral(&mut self) -> [u8; 32]
pub fn session_key(&mut self) -> Vec<u8> ⓘ
pub fn calculate_proof(&mut self, account: &str) -> [u8; 20]
pub fn calculate_session_key(&mut self, account: &str, password: &str)
pub fn validate_proof(&mut self, server_proof: [u8; 20]) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Srp
impl RefUnwindSafe for Srp
impl Send for Srp
impl Sync for Srp
impl Unpin for Srp
impl UnwindSafe for Srp
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