| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private DerivationFunction | |
| private final int | |
| private boolean | |
| private static final BigInteger | |
| private SecureRandom | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | ECIESKEMGenerator(int
size of the key to be generated (in bytes). keySize, DerivationFunction the key derivation function to be used. kdf, SecureRandom the random source for the session key. rnd)Set up the ECIES-KEM. |
| public | ECIESKEMGenerator(int
length in bytes of key to generate keyLen, DerivationFunction the key derivation function to be used. kdf, SecureRandom the random source for the session key. rnd, boolean if true use the new cofactor ECDH. cofactorMode, boolean if true use the old cofactor ECDH. oldCofactorMode, boolean if true use single hash mode. singleHashMode)Set up the ECIES-KEM. |
| Modifier and Type | Method and Description |
|---|---|
| private ECMultiplier | |
| pack-priv static byte[] | |
| public SecretWithEncapsulation | generateEncapsulated(AsymmetricKeyParameter recipientKey)
Implements org. |
| CofactorMode | back to summary |
|---|---|
| private boolean CofactorMode | |
| kdf | back to summary |
|---|---|
| private DerivationFunction kdf | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| OldCofactorMode | back to summary |
|---|---|
| private boolean OldCofactorMode | |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| rnd | back to summary |
|---|---|
| private SecureRandom rnd | |
| SingleHashMode | back to summary |
|---|---|
| private boolean SingleHashMode | |
| ECIESKEMGenerator | back to summary |
|---|---|
| public ECIESKEMGenerator(int keySize, DerivationFunction kdf, SecureRandom rnd) Set up the ECIES-KEM.
| |
| ECIESKEMGenerator | back to summary |
|---|---|
| public ECIESKEMGenerator(int keyLen, DerivationFunction kdf, SecureRandom rnd, boolean cofactorMode, boolean oldCofactorMode, boolean singleHashMode) Set up the ECIES-KEM.
| |
| createBasePointMultiplier | back to summary |
|---|---|
| private ECMultiplier createBasePointMultiplier() | |
| deriveKey | back to summary |
|---|---|
| pack-priv static byte[] deriveKey(boolean SingleHashMode, DerivationFunction kdf, int keyLen, byte[] C, byte[] PEH) | |
| generateEncapsulated | back to summary |
|---|---|
| public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey) Implements org. Doc from org. Generate secret/encapsulation based on the recipient public key.
| |