de.flexiprovider.core.rbrsa
Class RbRSAKeyGenParameterSpec
java.lang.Object
|
+--de.flexiprovider.core.rbrsa.RbRSAKeyGenParameterSpec
- All Implemented Interfaces:
- AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec
- public class RbRSAKeyGenParameterSpec
- extends java.lang.Object
- implements AlgorithmParameterSpec
This class specifies parameters used by the RbRSAKeyPairGenerator.
- Author:
- Paul Nguentcheu, Martin Döring
|
Constructor Summary |
RbRSAKeyGenParameterSpec()
Construct the default rebalanced RSA key generation parameters. |
RbRSAKeyGenParameterSpec(int keySize)
Construct new rebalanced RSA key generation parameters from the given key
size. |
RbRSAKeyGenParameterSpec(int keySize,
int s)
Construct new rebalanced RSA key generation parameters from the given key
size and bit length of the prime p modulo p and
modulo q. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_KEY_SIZE
public static final int DEFAULT_KEY_SIZE
- The default bit length of the modulus n (1024 bits)
DEFAULT_PRIVATE_EXPONENT_SIZE
public static final int DEFAULT_PRIVATE_EXPONENT_SIZE
- The default bit length of the private exponent d modulo
p and modulo q (160 bits)
RbRSAKeyGenParameterSpec
public RbRSAKeyGenParameterSpec()
- Construct the default rebalanced RSA key generation parameters. The key
size is chosen as
DEFAULT_KEY_SIZE. The bit length of the prime
p modulo p and modulo q is chosen as
DEFAULT_PRIVATE_EXPONENT_SIZE.
RbRSAKeyGenParameterSpec
public RbRSAKeyGenParameterSpec(int keySize)
- Construct new rebalanced RSA key generation parameters from the given key
size. The bit length of the prime p modulo p and
modulo q is chosen as
DEFAULT_PRIVATE_EXPONENT_SIZE.
If the key size is invalid, choose the DEFAULT_KEY_SIZE.
- Parameters:
keySize - the bit length of the modulus n (>= 512)
RbRSAKeyGenParameterSpec
public RbRSAKeyGenParameterSpec(int keySize,
int s)
- Construct new rebalanced RSA key generation parameters from the given key
size and bit length of the prime p modulo p and
modulo q. If the key size is invalid, choose the
DEFAULT_KEY_SIZE. If the bit length of the prime p
is invalid, choose the DEFAULT_PRIVATE_EXPONENT_SIZE.
- Parameters:
keySize - the bit length of the modulus n (>= 512)s - the bit length of the prime p modulo p
and modulo q (>= 2)
getKeySize
public int getKeySize()
- Returns:
- the bit length of the modulus n
getPrivExpSize
public int getPrivExpSize()
- Returns:
- the bit length of the private exponent d modulo
p and modulo q