Package org.bouncycastle.crypto.params
Class NaccacheSternPrivateKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.crypto.params.NaccacheSternKeyParameters
org.bouncycastle.crypto.params.NaccacheSternPrivateKeyParameters
- All Implemented Interfaces:
CipherParameters
Private key parameters for NaccacheStern cipher. For details on this cipher,
please see
https://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf
-
Constructor Summary
ConstructorDescriptionNaccacheSternPrivateKeyParameters
(BigInteger g, BigInteger n, int lowerSigmaBound, Vector smallPrimes, BigInteger phi_n) Constructs a NaccacheSternPrivateKey -
Method Summary
Methods inherited from class org.bouncycastle.crypto.params.NaccacheSternKeyParameters
getG, getLowerSigmaBound, getModulus
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
Constructor Details
-
NaccacheSternPrivateKeyParameters
public NaccacheSternPrivateKeyParameters(BigInteger g, BigInteger n, int lowerSigmaBound, Vector smallPrimes, BigInteger phi_n) Constructs a NaccacheSternPrivateKey- Parameters:
g
- the public enryption parameter gn
- the public modulus n = p*qlowerSigmaBound
- the public lower sigma bound up to which data can be encryptedsmallPrimes
- the small primes, of which sigma is constructed in the right orderphi_n
- the private modulus phi(n) = (p-1)(q-1)
-
-
Method Details
-
getPhi_n
-
getSmallPrimes
-