| Modifier and Type | Field and Description |
|---|---|
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger | |
| protected Digest | |
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger | |
| protected SecureRandom | |
| protected BigInteger | |
| protected BigInteger | |
| protected BigInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private BigInteger | |
| public BigInteger | Returns: A shared secret BigIntegerThe client's credentials clientA)Processes the client's credentials. |
| public BigInteger | Returns: M2: the server side generated evidence messageComputes the server evidence message M2 using the previously verified values. |
| public BigInteger | Returns: Key: the mutual authenticated symmetric session keyComputes the final session key as a result of the SRP successful mutual authentication To be called after calculating the server evidence message M2. |
| public BigInteger | Returns: The server's public value to the clientGenerates the server's credentials that are to be sent to the client. |
| public void | init(BigInteger
The safe prime associated with the client's verifier N, BigInteger The group parameter associated with the client's verifier g, BigInteger The client's verifier v, Digest The digest algorithm associated with the client's verifier digest, SecureRandom For key generation random)Initialises the server to accept a new client authentication attempt |
| public void | |
| protected BigInteger | |
| public boolean | Returns: A boolean indicating if the client message M1 was the expected one.the client side generated evidence message clientM1)Authenticates the received client evidence message M1 and saves it only if correct. |
| A | back to summary |
|---|---|
| protected BigInteger A | |
| b | back to summary |
|---|---|
| protected BigInteger b | |
| B | back to summary |
|---|---|
| protected BigInteger B | |
| digest | back to summary |
|---|---|
| protected Digest digest | |
| g | back to summary |
|---|---|
| protected BigInteger g | |
| Key | back to summary |
|---|---|
| protected BigInteger Key | |
| M1 | back to summary |
|---|---|
| protected BigInteger M1 | |
| M2 | back to summary |
|---|---|
| protected BigInteger M2 | |
| N | back to summary |
|---|---|
| protected BigInteger N | |
| random | back to summary |
|---|---|
| protected SecureRandom random | |
| S | back to summary |
|---|---|
| protected BigInteger S | |
| u | back to summary |
|---|---|
| protected BigInteger u | |
| v | back to summary |
|---|---|
| protected BigInteger v | |
| SRP6Server | back to summary |
|---|---|
| public SRP6Server() | |
| calculateS | back to summary |
|---|---|
| private BigInteger calculateS() | |
| calculateSecret | back to summary |
|---|---|
| public BigInteger calculateSecret(BigInteger clientA) throws CryptoException Processes the client's credentials. If valid the shared secret is generated and returned.
| |
| calculateServerEvidenceMessage | back to summary |
|---|---|
| public BigInteger calculateServerEvidenceMessage() throws CryptoException Computes the server evidence message M2 using the previously verified values. To be called after successfully verifying the client evidence message M1.
| |
| calculateSessionKey | back to summary |
|---|---|
| public BigInteger calculateSessionKey() throws CryptoException Computes the final session key as a result of the SRP successful mutual authentication To be called after calculating the server evidence message M2.
| |
| generateServerCredentials | back to summary |
|---|---|
| public BigInteger generateServerCredentials() Generates the server's credentials that are to be sent to the client.
| |
| init | back to summary |
|---|---|
| public void init(BigInteger N, BigInteger g, BigInteger v, Digest digest, SecureRandom random) Initialises the server to accept a new client authentication attempt
| |
| init | back to summary |
|---|---|
| public void init(SRP6GroupParameters group, BigInteger v, Digest digest, SecureRandom random) | |
| selectPrivateValue | back to summary |
|---|---|
| protected BigInteger selectPrivateValue() | |
| verifyClientEvidenceMessage | back to summary |
|---|---|
| public boolean verifyClientEvidenceMessage(BigInteger clientM1) throws CryptoException Authenticates the received client evidence message M1 and saves it only if correct. To be called after calculating the secret S.
| |