Org.BouncyCastle.Crypto.Agreement.Srp.Srp6Utilities.CalculateU C# (CSharp) Method

CalculateU() public static method

public static CalculateU ( IDigest digest, BigInteger N, BigInteger A, BigInteger B ) : BigInteger
digest IDigest
N Org.BouncyCastle.Math.BigInteger
A Org.BouncyCastle.Math.BigInteger
B Org.BouncyCastle.Math.BigInteger
return Org.BouncyCastle.Math.BigInteger
        public static BigInteger CalculateU(IDigest digest, BigInteger N, BigInteger A, BigInteger B)
        {
            return HashPaddedPair(digest, N, A, B);
        }

Usage Example

Exemplo n.º 1
0
 public virtual BigInteger CalculateSecret(BigInteger clientA)
 {
     this.A = Srp6Utilities.ValidatePublicValue(this.N, clientA);
     this.u = Srp6Utilities.CalculateU(this.digest, this.N, this.A, this.pubB);
     this.S = this.CalculateS();
     return(this.S);
 }
All Usage Examples Of Org.BouncyCastle.Crypto.Agreement.Srp.Srp6Utilities::CalculateU