Function rust_srp::compute_x[][src]

pub fn compute_x(salt: &BigUint, password: &str) -> BigUint

Computes x = H(s | P)

Note that this method differs from the RFC 5054 recommendation which includes the user identity 'I', i.e. x = H(s | H(I | ":" | P))

Arguments

  • salt - small random unsigned salt
  • password - the client password

The resulting 'x'.