de.flexiprovider.core.mprsa
Class MpRSAKeyGenParameterSpec
java.lang.Object
|
+--java.security.spec.RSAKeyGenParameterSpec
|
+--de.flexiprovider.core.rsa.RSAKeyGenParameterSpec
|
+--de.flexiprovider.core.mprsa.MpRSAKeyGenParameterSpec
- All Implemented Interfaces:
- AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec
- public class MpRSAKeyGenParameterSpec
- extends RSAKeyGenParameterSpec
- implements AlgorithmParameterSpec
This class specifies parameters used by the MpRSAKeyPairGenerator.
- Author:
- Paul Nguentcheu, Martin Döring
| Fields inherited from class java.security.spec.RSAKeyGenParameterSpec |
F0, F4 |
| Methods inherited from class java.security.spec.RSAKeyGenParameterSpec |
, getKeysize, getPublicExponent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_NUM_PRIMES
public static final int DEFAULT_NUM_PRIMES
- The default number of primes
MpRSAKeyGenParameterSpec
public MpRSAKeyGenParameterSpec()
- Construct the default MeRSA key generation parameters. Choose the key
size as
RSAKeyGenParameterSpec.DEFAULT_KEY_SIZE, the public exponent as
RSAKeyGenParameterSpec.DEFAULT_EXPONENT, and the exponent of the prime p as
DEFAULT_NUM_PRIMES.
MpRSAKeyGenParameterSpec
public MpRSAKeyGenParameterSpec(int keySize)
- Construct new MeRSA key generation parameters from the given key size.
Choose the public exponent as
RSAKeyGenParameterSpec.DEFAULT_EXPONENT, and the
exponent of the prime p as DEFAULT_NUM_PRIMES. If
the key size is invalid, choose the RSAKeyGenParameterSpec.DEFAULT_KEY_SIZE.
- Parameters:
keySize - the key size (>= 512 bits)
MpRSAKeyGenParameterSpec
public MpRSAKeyGenParameterSpec(int keySize,
FlexiBigInt e)
- Construct new MeRSA key generation parameters from the given key size and
public exponent. The exponent of the prime p is set to the
DEFAULT_NUM_PRIMES. If the key size is invalid, choose the
RSAKeyGenParameterSpec.DEFAULT_KEY_SIZE. If the public exponent is invalid, choose the
RSAKeyGenParameterSpec.DEFAULT_EXPONENT.
- Parameters:
keySize - the key size (>= 512 bits)e - the public exponent (must be odd)
MpRSAKeyGenParameterSpec
public MpRSAKeyGenParameterSpec(int keySize,
FlexiBigInt e,
int k)
- Construct new RSA key generation parameters from the given key size and
public exponent. If the key size is invalid, choose the
RSAKeyGenParameterSpec.DEFAULT_KEY_SIZE. If the public exponent is invalid, choose the
RSAKeyGenParameterSpec.DEFAULT_EXPONENT. If the exponent of the prime p is
invalid, choose the DEFAULT_NUM_PRIMES.
- Parameters:
keySize - the key size (>= 512 bits)e - the public exponent (must be odd)k - the number of primes (>= 2)
getNumPrimes
public int getNumPrimes()
- Returns:
- the number of primes