| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static BigInteger | |
| private static BigInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static BigInteger | |
| public static BigInteger | Returns: the final Key value.The Digest used as the hashing function H digest, BigInteger Modulus used to get the pad length N, BigInteger The secret calculated by both sides S)Computes the final Key according to the standard routine: Key = H(S) |
| public static BigInteger | Returns: M1 The calculated client evidence messageThe Digest used as the hashing function H digest, BigInteger Modulus used to get the pad length N, BigInteger The public client value A, BigInteger The public server value B, BigInteger The secret calculated by both sides S)Computes the client evidence message (M1) according to the standard routine: M1 = H( A | B | S ) |
| public static BigInteger | Returns: M2 The calculated server evidence messageThe Digest used as the hashing function H digest, BigInteger Modulus used to get the pad length N, BigInteger The public client value A, BigInteger The client evidence message M1, BigInteger The secret calculated by both sides S)Computes the server evidence message (M2) according to the standard routine: M2 = H( A | M1 | S ) |
| public static BigInteger | |
| public static BigInteger | |
| public static BigInteger | |
| private static byte[] | |
| private static BigInteger | |
| private static BigInteger | |
| public static BigInteger |
| COLON | back to summary |
|---|---|
| private static final byte[] COLON | |
| ONE | back to summary |
|---|---|
| private static BigInteger ONE | |
| ZERO | back to summary |
|---|---|
| private static BigInteger ZERO | |
| SRP6Util | back to summary |
|---|---|
| pack-priv SRP6Util() | |
| calculateK | back to summary |
|---|---|
| public static BigInteger calculateK(TlsHash digest, BigInteger N, BigInteger g) | |
| calculateKey | back to summary |
|---|---|
| public static BigInteger calculateKey(TlsHash digest, BigInteger N, BigInteger S) Computes the final Key according to the standard routine: Key = H(S)
| |
| calculateM1 | back to summary |
|---|---|
| public static BigInteger calculateM1(TlsHash digest, BigInteger N, BigInteger A, BigInteger B, BigInteger S) Computes the client evidence message (M1) according to the standard routine: M1 = H( A | B | S )
| |
| calculateM2 | back to summary |
|---|---|
| public static BigInteger calculateM2(TlsHash digest, BigInteger N, BigInteger A, BigInteger M1, BigInteger S) Computes the server evidence message (M2) according to the standard routine: M2 = H( A | M1 | S )
| |
| calculateU | back to summary |
|---|---|
| public static BigInteger calculateU(TlsHash digest, BigInteger N, BigInteger A, BigInteger B) | |
| calculateX | back to summary |
|---|---|
| public static BigInteger calculateX(TlsHash digest, BigInteger N, byte[] salt, byte[] identity, byte[] password) | |
| generatePrivateValue | back to summary |
|---|---|
| public static BigInteger generatePrivateValue(BigInteger N, BigInteger g, SecureRandom random) | |
| getPadded | back to summary |
|---|---|
| private static byte[] getPadded(BigInteger n, int length) | |
| hashPaddedPair | back to summary |
|---|---|
| private static BigInteger hashPaddedPair(TlsHash digest, BigInteger N, BigInteger n1, BigInteger n2) | |
| hashPaddedTriplet | back to summary |
|---|---|
| private static BigInteger hashPaddedTriplet(TlsHash digest, BigInteger N, BigInteger n1, BigInteger n2, BigInteger n3) | |
| validatePublicValue | back to summary |
|---|---|
| public static BigInteger validatePublicValue(BigInteger N, BigInteger val) throws IllegalArgumentException | |