| Modifier and Type | Field and Description |
|---|---|
| pack-priv BasicAgreement | |
| pack-priv BufferedBlockCipher | |
| pack-priv boolean | |
| private byte[] | |
| pack-priv DerivationFunction | |
| private EphemeralKeyPairGenerator | |
| private KeyParser | |
| pack-priv Mac | |
| pack-priv byte[] | |
| pack-priv IESParameters | |
| pack-priv CipherParameters | |
| pack-priv CipherParameters | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| public | IESEngine(BasicAgreement
the key agreement used as the basis for the encryption agree, DerivationFunction the key derivation function used for byte generation kdf, Mac the message authentication code generator for the message mac)Set up for use with stream mode, where the key derivation function is used to provide a stream of bytes to xor with the message. |
| public | IESEngine(BasicAgreement
the key agreement used as the basis for the encryption agree, DerivationFunction the key derivation function used for byte generation kdf, Mac the message authentication code generator for the message mac, BufferedBlockCipher the cipher to used for encrypting the message cipher)Set up for use in conjunction with a block cipher to handle the message. |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| private byte[] | |
| private void | |
| public BufferedBlockCipher | |
| protected byte[] | |
| public Mac | |
| public void | init(boolean
whether or not this is encryption/decryption. forEncryption, CipherParameters our private key parameters privParam, CipherParameters the recipient's/sender's public key parameters pubParam, CipherParameters encoding and derivation parameters, may be wrapped to include an IV for an underlying block cipher. params)Initialise the encryptor. |
| public void | init(AsymmetricKeyParameter
the recipient's/sender's public key parameters publicKey, CipherParameters encoding and derivation parameters, may be wrapped to include an IV for an underlying block cipher. params, EphemeralKeyPairGenerator the ephemeral key pair generator to use. ephemeralKeyPairGenerator)Initialise the decryptor. |
| public void | init(AsymmetricKeyParameter
the recipient's private key. privateKey, CipherParameters encoding and derivation parameters, may be wrapped to include an IV for an underlying block cipher. params, KeyParser the parser for reading the ephemeral public key. publicKeyParser)Initialise the encryptor. |
| public byte[] |
| agree | back to summary |
|---|---|
| pack-priv BasicAgreement agree | |
| cipher | back to summary |
|---|---|
| pack-priv BufferedBlockCipher cipher | |
| forEncryption | back to summary |
|---|---|
| pack-priv boolean forEncryption | |
| IV | back to summary |
|---|---|
| private byte[] IV | |
| kdf | back to summary |
|---|---|
| pack-priv DerivationFunction kdf | |
| keyPairGenerator | back to summary |
|---|---|
| private EphemeralKeyPairGenerator keyPairGenerator | |
| keyParser | back to summary |
|---|---|
| private KeyParser keyParser | |
| mac | back to summary |
|---|---|
| pack-priv Mac mac | |
| macBuf | back to summary |
|---|---|
| pack-priv byte[] macBuf | |
| param | back to summary |
|---|---|
| pack-priv IESParameters param | |
| privParam | back to summary |
|---|---|
| pack-priv CipherParameters privParam | |
| pubParam | back to summary |
|---|---|
| pack-priv CipherParameters pubParam | |
| V | back to summary |
|---|---|
| pack-priv byte[] V | |
| IESEngine | back to summary |
|---|---|
| public IESEngine(BasicAgreement agree, DerivationFunction kdf, Mac mac) Set up for use with stream mode, where the key derivation function is used to provide a stream of bytes to xor with the message.
| |
| IESEngine | back to summary |
|---|---|
| public IESEngine(BasicAgreement agree, DerivationFunction kdf, Mac mac, BufferedBlockCipher cipher) Set up for use in conjunction with a block cipher to handle the message. It is strongly recommended that the cipher is not in ECB mode.
| |
| decryptBlock | back to summary |
|---|---|
| private byte[] decryptBlock(byte[] in_enc, int inOff, int inLen) throws InvalidCipherTextException | |
| encryptBlock | back to summary |
|---|---|
| private byte[] encryptBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException | |
| extractParams | back to summary |
|---|---|
| private void extractParams(CipherParameters params) | |
| getCipher | back to summary |
|---|---|
| public BufferedBlockCipher getCipher() | |
| getLengthTag | back to summary |
|---|---|
| protected byte[] getLengthTag(byte[] p2) | |
| getMac | back to summary |
|---|---|
| public Mac getMac() | |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters privParam, CipherParameters pubParam, CipherParameters params) Initialise the encryptor.
| |
| init | back to summary |
|---|---|
| public void init(AsymmetricKeyParameter publicKey, CipherParameters params, EphemeralKeyPairGenerator ephemeralKeyPairGenerator) Initialise the decryptor.
| |
| init | back to summary |
|---|---|
| public void init(AsymmetricKeyParameter privateKey, CipherParameters params, KeyParser publicKeyParser) Initialise the encryptor.
| |
| processBlock | back to summary |
|---|---|
| public byte[] processBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException | |