public static CalculateX ( IDigest digest, |
||
digest | IDigest | |
N | ||
salt | byte | |
identity | byte | |
password | byte | |
return |
public virtual BigInteger GenerateClientCredentials(byte[] salt, byte[] identity, byte[] password) { x = Srp6Utilities.CalculateX(digest, N, salt, identity, password); privA = SelectPrivateValue(); pubA = g.ModPow(privA, N); return(pubA); }
public virtual BigInteger GenerateClientCredentials(byte[] salt, byte[] identity, byte[] password) { this.x = Srp6Utilities.CalculateX(this.digest, this.N, salt, identity, password); this.privA = this.SelectPrivateValue(); this.pubA = this.g.ModPow(this.privA, this.N); return(this.pubA); }
/** * Creates a new SRP verifier * @param salt The salt to use, generally should be large and random * @param identity The user's identifying information (eg. username) * @param password The user's password * @return A new verifier for use in future SRP authentication */ public virtual BigInteger GenerateVerifier(byte[] salt, byte[] identity, byte[] password) { BigInteger x = Srp6Utilities.CalculateX(digest, N, salt, identity, password); return(g.ModPow(x, N)); }
public virtual BigInteger GenerateVerifier(byte[] salt, byte[] identity, byte[] password) { BigInteger e = Srp6Utilities.CalculateX(this.digest, this.N, salt, identity, password); return(this.g.ModPow(e, this.N)); }