Method | Description | |
---|---|---|
CalculateK ( IDigest digest, |
||
CalculateU ( IDigest digest, |
||
CalculateX ( IDigest digest, |
||
GeneratePrivateValue ( |
||
ToPaddedArray ( this n, int length ) : byte[] |
Gets the byte representation of n that is padded to match the byte length of length.
|
|
ValidatePublicValue ( |
Method | Description | |
---|---|---|
GetPadded ( |
Pads a byte[] to the specified length, with zeroes at the start of the buffer.
|
|
HashPaddedPair ( IDigest digest, |
Pads n1 and n2 to the same number of bytes as N. Then hashes them.
|
public static CalculateK ( IDigest digest, |
||
digest | IDigest | |
N | ||
g | ||
return |
public static CalculateU ( IDigest digest, |
||
digest | IDigest | |
N | ||
A | ||
B | ||
return |
public static CalculateX ( IDigest digest, |
||
digest | IDigest | |
N | ||
salt | byte | |
identity | byte | |
password | byte | |
return |
public static GeneratePrivateValue ( |
||
N | ||
random | ||
return |
public static ToPaddedArray ( this n, int length ) : byte[] | ||
n | this | |
length | int | |
return | byte[] |
public static ValidatePublicValue ( |
||
N | ||
val | ||
return |