Top Description Fields Constructors Methods
org.bouncycastle.crypto.prng.drbg

public Class DualECPoints

extends Object
Class Inheritance
Imports
org.bouncycastle.math.ec.ECPoint

General class for providing point pairs for use with DualEC DRBG. See NIST SP 800-90A for further details.

Field Summary

Modifier and TypeField and Description
private final int
private final ECPoint
p

private final ECPoint
q

private final int

Constructor Summary

AccessConstructor and Description
public
DualECPoints(int
maximum security strength to be associated with these parameters
securityStrength
,
ECPoint
the P point.
p
,
ECPoint
the Q point.
q
,
int
cofactor associated with the domain parameters for the point generation.
cofactor
)

Base Constructor.

Method Summary

Modifier and TypeMethod and Description
public int
public int
public ECPoint
getP()

public ECPoint
getQ()

public int
public int
private static int
log2(int value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cofactorback to summary
private final int cofactor
pback to summary
private final ECPoint p
qback to summary
private final ECPoint q
securityStrengthback to summary
private final int securityStrength

Constructor Detail

DualECPointsback to summary
public DualECPoints(int securityStrength, ECPoint p, ECPoint q, int cofactor)

Base Constructor.

The cofactor is used to calculate the output block length (maxOutlen) according to

    max_outlen = largest multiple of 8 less than ((field size in bits) - (13 + log2(cofactor))
Parameters
securityStrength:int

maximum security strength to be associated with these parameters

p:ECPoint

the P point.

q:ECPoint

the Q point.

cofactor:int

cofactor associated with the domain parameters for the point generation.

Method Detail

getCofactorback to summary
public int getCofactor()
getMaxOutlenback to summary
public int getMaxOutlen()
getPback to summary
public ECPoint getP()
getQback to summary
public ECPoint getQ()
getSecurityStrengthback to summary
public int getSecurityStrength()
getSeedLenback to summary
public int getSeedLen()
log2back to summary
private static int log2(int value)