public static GeneratePrivateValue ( |
||
N | ||
random | ||
return |
protected virtual BigInteger SelectPrivateValue() { return(Srp6Utilities.GeneratePrivateValue(digest, N, g, random)); }
protected virtual BigInteger SelectPrivateValue() { return(Srp6Utilities.GeneratePrivateValue(param.N, random)); }
protected virtual BigInteger SelectPrivateValue() { return(Srp6Utilities.GeneratePrivateValue(this.digest, this.N, this.g, this.random)); }
/** * Initialises the server to accept a new client authentication attempt * @param N The safe prime associated with the client's verifier * @param g The group parameter associated with the client's verifier * @param v The client's verifier * @param digest The digest algorithm associated with the client's verifier * @param random For key generation */ public Srp6Server(SrpConstants param, BigInteger v) { this.param = param; this.v = v; this.privB = Srp6Utilities.GeneratePrivateValue(param.N, new SecureRandom()); }