pub struct SrpSession {
pub client_public: Vec<u8>,
pub client_proof: Vec<u8>,
pub session_key: Vec<u8>,
/* private fields */
}Expand description
SRP-3072-SHA512 session, matching go-ios srp.go.
Custom password hash: SHA512(salt || SHA512(“Pair-Setup:000000”))
Fields§
§client_public: Vec<u8>§client_proof: Vec<u8>§session_key: Vec<u8>Implementations§
Source§impl SrpSession
impl SrpSession
Sourcepub fn new(salt: &[u8], device_public: &[u8]) -> Result<Self, PairingError>
pub fn new(salt: &[u8], device_public: &[u8]) -> Result<Self, PairingError>
Initialize SRP session from the device’s salt and public key.
pub fn verify_server_proof(&self, server_proof: &[u8]) -> bool
Auto Trait Implementations§
impl Freeze for SrpSession
impl RefUnwindSafe for SrpSession
impl Send for SrpSession
impl Sync for SrpSession
impl Unpin for SrpSession
impl UnsafeUnpin for SrpSession
impl UnwindSafe for SrpSession
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