pub struct Handshake<const KEY_LENGTH: usize, const SALT_LENGTH: usize> {
    pub B: PublicKey,
    pub g: Generator,
    pub N: PrimeModulus,
    pub k: MultiplierParameter,
    pub s: Salt,
}
Expand description

Contains all variables needed for a successful session key generation provided by the server to the client

Fields

B: PublicKey

the servers public key

g: Generator

a generator modulo N

N: PrimeModulus

a big and safe prime number

k: MultiplierParameter

multiplier parameter

s: Salt

the users salt

Implementations

client proof calculation User: x = H(s, p) (user enters password) User: S = (B - kg^x) ^ (a + ux) (computes session key) User: K = H(S)

Trait Implementations

Formats the value using the given formatter. Read more

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.