Struct srp6::HandshakeProofVerifier [−][src]
pub struct HandshakeProofVerifier {
pub server_keys: (PublicKey, PrivateKey),
pub user: UserDetails,
pub g: Generator,
pub N: PrimeModulus,
}
Expand description
This is responsible for verifying a HandshakeProof
that is
provided by the client to the server
Fields
server_keys: (PublicKey, PrivateKey)
the servers pub and private key
user: UserDetails
the users s, v and I
g: Generator
a generator modulo N
N: PrimeModulus
a big and safe prime number
Implementations
pub fn verify_proof<const KEY_LENGTH: usize, const SALT_LENGTH: usize>(
&self,
proof: &HandshakeProof<KEY_LENGTH, SALT_LENGTH>
) -> Result<(StrongProof, StrongSessionKey)>
pub fn verify_proof<const KEY_LENGTH: usize, const SALT_LENGTH: usize>(
&self,
proof: &HandshakeProof<KEY_LENGTH, SALT_LENGTH>
) -> Result<(StrongProof, StrongSessionKey)>
verifies a proof provided by the client