C# 클래스 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.
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
N Org.BouncyCastle.Math.BigInteger
Nb byte[]
g Org.BouncyCastle.Math.BigInteger
gb byte[]
k Org.BouncyCastle.Math.BigInteger
kb byte[]
kb2 byte[]

공개 메소드들

메소드 설명
Lookup ( SrpStrength strength ) : SrpConstants

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

비공개 메소드들

메소드 설명
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

메소드 상세

Lookup() 공개 정적인 메소드

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.
리턴 SrpConstants

프로퍼티 상세

N 공개적으로 프로퍼티

public BigInteger,Org.BouncyCastle.Math N
리턴 Org.BouncyCastle.Math.BigInteger

Nb 공개적으로 프로퍼티

public byte[] Nb
리턴 byte[]

g 공개적으로 프로퍼티

public BigInteger,Org.BouncyCastle.Math g
리턴 Org.BouncyCastle.Math.BigInteger

gb 공개적으로 프로퍼티

public byte[] gb
리턴 byte[]

k 공개적으로 프로퍼티

public BigInteger,Org.BouncyCastle.Math k
리턴 Org.BouncyCastle.Math.BigInteger

kb 공개적으로 프로퍼티

public byte[] kb
리턴 byte[]

kb2 공개적으로 프로퍼티

H(N) xor H(g)
public byte[] kb2
리턴 byte[]