Top Description Fields Constructors Methods
org.bouncycastle.crypto.params

public Class NaccacheSternPrivateKeyParameters

extends NaccacheSternKeyParameters
Class Inheritance
Imports
java.math.BigInteger, java.util.Vector

Private key parameters for NaccacheStern cipher. For details on this cipher, please see https://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf

Field Summary

Modifier and TypeField and Description
private BigInteger
private Vector<E>
Inherited from org.bouncycastle.crypto.params.NaccacheSternKeyParameters:
lowerSigmaBound

Constructor Summary

AccessConstructor and Description
public
NaccacheSternPrivateKeyParameters(BigInteger
the public enryption parameter g
g
,
BigInteger
the public modulus n = p*q
n
,
int
the public lower sigma bound up to which data can be encrypted
lowerSigmaBound
,
Vector<E>
the small primes, of which sigma is constructed in the right order
smallPrimes
,
BigInteger
the private modulus phi(n) = (p-1)(q-1)
phi_n
)

Constructs a NaccacheSternPrivateKey

Method Summary

Modifier and TypeMethod and Description
public BigInteger
public Vector<E>
Inherited from org.bouncycastle.crypto.params.NaccacheSternKeyParameters:
getGgetLowerSigmaBoundgetModulus

Field Detail

phi_nback to summary
private BigInteger phi_n
smallPrimesback to summary
private Vector<E> smallPrimes

Constructor Detail

NaccacheSternPrivateKeyParametersback to summary
public NaccacheSternPrivateKeyParameters(BigInteger g, BigInteger n, int lowerSigmaBound, Vector<E> smallPrimes, BigInteger phi_n)

Constructs a NaccacheSternPrivateKey

Parameters
g:BigInteger

the public enryption parameter g

n:BigInteger

the public modulus n = p*q

lowerSigmaBound:int

the public lower sigma bound up to which data can be encrypted

smallPrimes:Vector<E>

the small primes, of which sigma is constructed in the right order

phi_n:BigInteger

the private modulus phi(n) = (p-1)(q-1)

Method Detail

getPhi_nback to summary
public BigInteger getPhi_n()
getSmallPrimesback to summary
public Vector<E> getSmallPrimes()