Deprecated
use ECIESKEMGenerator, ECIESKEMExtractor
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private DerivationFunction | |
| private ECKeyParameters | |
| private boolean | |
| private SecureRandom | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | ECIESKeyEncapsulation(DerivationFunction
the key derivation function to be used. kdf, SecureRandom the random source for the session key. rnd)Set up the ECIES-KEM. |
| public | ECIESKeyEncapsulation(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 |
|---|---|
| public CipherParameters | Returns: the session key.the input buffer for the encapsulated key. in, int the offset for the input buffer. inOff, int the length of the encapsulated key. inLen, int the length of the session key. keyLen)Implements org.
Deprecated
use ECIESKEMExtractor
Decrypt an encapsulated session key.
|
| public CipherParameters | Returns: the session key.the input buffer for the encapsulated key. in, int the length of the session key. keyLen)
Deprecated
use ECIESKEMExtractor
Decrypt an encapsulated session key.
|
| public CipherParameters | Returns: the random session key.the output buffer for the encapsulated key. out, int the offset for the output buffer. outOff, int the length of the session key. keyLen)Implements org.
Deprecated
use ECIESKEMGenerator
Generate and encapsulate a random session key.
|
| public CipherParameters | Returns: the random session key.the output buffer for the encapsulated key. out, int the length of the session key. keyLen)
Deprecated
use ECIESKEMGenerator
Generate and encapsulate a random session key.
|
| public void | init(CipherParameters
the recipient's public (for encryption) or private (for decryption) key. key)Implements org. |
| CofactorMode | back to summary |
|---|---|
| private boolean CofactorMode | |
| kdf | back to summary |
|---|---|
| private DerivationFunction kdf | |
| key | back to summary |
|---|---|
| private ECKeyParameters key | |
| OldCofactorMode | back to summary |
|---|---|
| private boolean OldCofactorMode | |
| rnd | back to summary |
|---|---|
| private SecureRandom rnd | |
| SingleHashMode | back to summary |
|---|---|
| private boolean SingleHashMode | |
| ECIESKeyEncapsulation | back to summary |
|---|---|
| public ECIESKeyEncapsulation(DerivationFunction kdf, SecureRandom rnd) Set up the ECIES-KEM.
| |
| ECIESKeyEncapsulation | back to summary |
|---|---|
| public ECIESKeyEncapsulation(DerivationFunction kdf, SecureRandom rnd, boolean cofactorMode, boolean oldCofactorMode, boolean singleHashMode) Set up the ECIES-KEM.
| |
| decrypt | back to summary |
|---|---|
| public CipherParameters decrypt(byte[] in, int inOff, int inLen, int keyLen) throws IllegalArgumentException Implements org. Deprecated use ECIESKEMExtractor Decrypt an encapsulated session key.
| |
| decrypt | back to summary |
|---|---|
| public CipherParameters decrypt(byte[] in, int keyLen)
Deprecated use ECIESKEMExtractor Decrypt an encapsulated session key.
| |
| encrypt | back to summary |
|---|---|
| public CipherParameters encrypt(byte[] out, int outOff, int keyLen) throws IllegalArgumentException Implements org. Deprecated use ECIESKEMGenerator Generate and encapsulate a random session key.
| |
| encrypt | back to summary |
|---|---|
| public CipherParameters encrypt(byte[] out, int keyLen)
Deprecated use ECIESKEMGenerator Generate and encapsulate a random session key.
| |
| init | back to summary |
|---|---|
| public void init(CipherParameters key) throws IllegalArgumentException Implements org. Initialise the ECIES-KEM.
| |