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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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[]