GeneratePrivateValue() public static method

public static GeneratePrivateValue ( BigInteger N, SecureRandom random ) : BigInteger
N Org.BouncyCastle.Math.BigInteger
random Org.BouncyCastle.Security.SecureRandom
return Org.BouncyCastle.Math.BigInteger
Exemplo n.º 1
0
 protected virtual BigInteger SelectPrivateValue()
 {
     return(Srp6Utilities.GeneratePrivateValue(digest, N, g, random));
 }
Exemplo n.º 2
0
 protected virtual BigInteger SelectPrivateValue()
 {
     return(Srp6Utilities.GeneratePrivateValue(param.N, random));
 }
Exemplo n.º 3
0
 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());
 }