public class SRP6VerifierGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected Digest |
digest |
protected BigInteger |
g |
protected BigInteger |
N |
Constructor and Description |
---|
SRP6VerifierGenerator() |
Modifier and Type | Method and Description |
---|---|
BigInteger |
generateVerifier(byte[] salt,
byte[] identity,
byte[] password)
Creates a new SRP verifier
|
void |
init(BigInteger N,
BigInteger g,
Digest digest)
Initialises generator to create new verifiers
|
protected BigInteger N
protected BigInteger g
protected Digest digest
public void init(BigInteger N, BigInteger g, Digest digest)
N
- The safe prime to use (see DHParametersGenerator)g
- The group parameter to use (see DHParametersGenerator)digest
- The digest to use. The same digest type will need to be used later for the actual authentication
attempt. Also note that the final session key size is dependent on the chosen digest.public BigInteger generateVerifier(byte[] salt, byte[] identity, byte[] password)
salt
- The salt to use, generally should be large and randomidentity
- The user's identifying information (eg. username)password
- The user's passwordCopyright © 2015. All rights reserved.