GeneratePrivateValue() публичный статический Метод

public static GeneratePrivateValue ( BigInteger N, SecureRandom random ) : BigInteger
N Org.BouncyCastle.Math.BigInteger
random Org.BouncyCastle.Security.SecureRandom
Результат Org.BouncyCastle.Math.BigInteger
Пример #1
0
 protected virtual BigInteger SelectPrivateValue()
 {
     return(Srp6Utilities.GeneratePrivateValue(digest, N, g, random));
 }
Пример #2
0
 protected virtual BigInteger SelectPrivateValue()
 {
     return(Srp6Utilities.GeneratePrivateValue(param.N, random));
 }
Пример #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());
 }