Struct srp6::Srp6

source · []
pub struct Srp6<const KEY_LENGTH: usize, const SALT_LENGTH: usize> {
    pub N: PrimeModulus,
    pub g: Generator,
    pub k: MultiplierParameter,
}
Expand description

Main interaction point for the server

Fields

N: PrimeModulus

A large safe prime (N = 2q+1, where q is prime. All arithmetic is done modulo N. KEY_LENGTH needs to match the bytes of PrimeModulus N

g: Generator

A generator modulo N

k: MultiplierParameter

multiplier parameter

Implementations

this constructor takes care of calculate the right k

Trait Implementations

Formats the value using the given formatter. Read more

creates a new Salt s and PasswordVerifier v for a new user

starts a session handshake for a given user Salt s and PasswordVerifier p are both user specific, initially they are generated by HostAPI::generate_new_user_secrets()

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.