Top Description Fields Constructors Methods
org.bouncycastle.crypto.agreement.srp

public Class SRP6VerifierGenerator

extends Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.crypto.Digest, org.bouncycastle.crypto.params.SRP6GroupParameters

Generates new SRP verifier for user

Field Summary

Modifier and TypeField and Description
protected Digest
protected BigInteger
g

protected BigInteger
N

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

A new verifier for use in future SRP authentication
generateVerifier
(byte[]
The salt to use, generally should be large and random
salt
,
byte[]
The user's identifying information (eg. username)
identity
,
byte[]
The user's password
password
)

Creates a new SRP verifier

public void
init(BigInteger
The safe prime to use (see DHParametersGenerator)
N
,
BigInteger
The group parameter to use (see DHParametersGenerator)
g
,
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.
digest
)

Initialises generator to create new verifiers

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestback to summary
protected Digest digest
gback to summary
protected BigInteger g
Nback to summary
protected BigInteger N

Constructor Detail

SRP6VerifierGeneratorback to summary
public SRP6VerifierGenerator()

Method Detail

generateVerifierback to summary
public BigInteger generateVerifier(byte[] salt, byte[] identity, byte[] password)

Creates a new SRP verifier

Parameters
salt:byte[]

The salt to use, generally should be large and random

identity:byte[]

The user's identifying information (eg. username)

password:byte[]

The user's password

Returns:BigInteger

A new verifier for use in future SRP authentication

initback to summary
public void init(BigInteger N, BigInteger g, Digest digest)

Initialises generator to create new verifiers

Parameters
N:BigInteger

The safe prime to use (see DHParametersGenerator)

g:BigInteger

The group parameter to use (see DHParametersGenerator)

digest: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.

initback to summary
public void init(SRP6GroupParameters group, Digest digest)