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.
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Свойство 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[]

Méthodes publiques

Méthode Description
Lookup ( SrpStrength strength ) : SrpConstants

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

Private Methods

Méthode 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 méthode

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.
Résultat SrpConstants

Property Details

N public_oe property

public BigInteger,Org.BouncyCastle.Math N
Résultat Org.BouncyCastle.Math.BigInteger

Nb public_oe property

public byte[] Nb
Résultat byte[]

g public_oe property

public BigInteger,Org.BouncyCastle.Math g
Résultat Org.BouncyCastle.Math.BigInteger

gb public_oe property

public byte[] gb
Résultat byte[]

k public_oe property

public BigInteger,Org.BouncyCastle.Math k
Résultat Org.BouncyCastle.Math.BigInteger

kb public_oe property

public byte[] kb
Résultat byte[]

kb2 public_oe property

H(N) xor H(g)
public byte[] kb2
Résultat byte[]