Class SRP6VerifierGenerator
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.srp.SRP6VerifierGenerator
Generates new SRP verifier for user
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TlsHashprotected BigIntegerprotected BigIntegerprotected SecureRandom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateVerifier(byte[] salt, byte[] identity, byte[] password) Creates a new SRP verifiervoidinit(BigInteger N, BigInteger g, TlsHash digest) Initialises generator to create new verifiersvoidinit(BigInteger N, BigInteger g, TlsHash digest, SecureRandom random) Initialises generator to create new verifiersvoidvoidinit(SRP6Group group, TlsHash digest, SecureRandom random)
-
Field Details
-
N
-
g
-
digest
-
random
-
-
Constructor Details
-
SRP6VerifierGenerator
public SRP6VerifierGenerator()
-
-
Method Details
-
init
Initialises generator to create new verifiers- Parameters:
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.
-
init
Initialises generator to create new verifiers- Parameters:
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.random- The source used to randomise the private exponent before it is raised, may be null to take the default from CryptoServicesRegistrar.
-
init
-
init
-
generateVerifier
Creates a new SRP verifier- Parameters:
salt- The salt to use, generally should be large and randomidentity- The user's identifying information (eg. username)password- The user's password- Returns:
- A new verifier for use in future SRP authentication
-