| Modifier and Type | Field and Description |
|---|---|
| private DerivationFunction | |
| private final int | |
| private static final BigInteger | |
| private SecureRandom | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| public | RSAKEMGenerator(int keyLen, DerivationFunction
the key derivation function to be used. kdf, SecureRandom the random source for the session key. rnd)Set up the RSA-KEM. |
| Modifier and Type | Method and Description |
|---|---|
| public SecretWithEncapsulation | generateEncapsulated(AsymmetricKeyParameter recipientKey)
Implements org. |
| pack-priv static byte[] |
| kdf | back to summary |
|---|---|
| private DerivationFunction kdf | |
| keyLen | back to summary |
|---|---|
| private final int keyLen | |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| rnd | back to summary |
|---|---|
| private SecureRandom rnd | |
| ZERO | back to summary |
|---|---|
| private static final BigInteger ZERO | |
| RSAKEMGenerator | back to summary |
|---|---|
| public RSAKEMGenerator(int keyLen, DerivationFunction kdf, SecureRandom rnd) Set up the RSA-KEM.
| |
| generateEncapsulated | back to summary |
|---|---|
| public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey) Implements org. Doc from org. Generate secret/encapsulation based on the recipient public key.
| |
| generateKey | back to summary |
|---|---|
| pack-priv static byte[] generateKey(DerivationFunction kdf, BigInteger n, BigInteger r, int keyLen) | |