C# Class GSF.Security.Authentication.SrpConstants

Supplies the base constants of SRP (Secure Remote Passord) as supplied in RFC 5054 Appendix A.
This implementation of SRP uses SHA-512 as the performance difference between SHA1 and SHA-512 is negligable.
Exibir arquivo Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Properties

Property Type Description
N Org.BouncyCastle.Math.BigInteger
Nb byte[]
g Org.BouncyCastle.Math.BigInteger
gb byte[]
k Org.BouncyCastle.Math.BigInteger
kb byte[]
kb2 byte[]

Public Methods

Method Description
Lookup ( SrpStrength strength ) : SrpConstants

Looks up the valid precomputed constants for SRP given the specified bit strength.

Private Methods

Method Description
ComputeHash ( ) : byte[]

Computes the hash of all of the supplied parameters.

SrpConstants ( ) : System
SrpConstants ( string hexN, string decG ) : System
Xor ( byte a, byte b ) : byte[]

Computes the XOR of the supplied parameters

Method Details

Lookup() public static method

Looks up the valid precomputed constants for SRP given the specified bit strength.
public static Lookup ( SrpStrength strength ) : SrpConstants
strength SrpStrength the bit strength to lookup.
return SrpConstants

Property Details

N public_oe property

public BigInteger,Org.BouncyCastle.Math N
return Org.BouncyCastle.Math.BigInteger

Nb public_oe property

public byte[] Nb
return byte[]

g public_oe property

public BigInteger,Org.BouncyCastle.Math g
return Org.BouncyCastle.Math.BigInteger

gb public_oe property

public byte[] gb
return byte[]

k public_oe property

public BigInteger,Org.BouncyCastle.Math k
return Org.BouncyCastle.Math.BigInteger

kb public_oe property

public byte[] kb
return byte[]

kb2 public_oe property

H(N) xor H(g)
public byte[] kb2
return byte[]