|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.engines.IESEngine
public class IESEngine
support class for constructing intergrated encryption ciphers for doing basic message exchanges on top of key agreement ciphers
| Constructor Summary | |
|---|---|
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(BasicAgreement agree,
DerivationFunction kdf,
Mac mac,
BufferedBlockCipher cipher)
set up for use in conjunction with a block cipher to handle the message. |
|
| Method Summary | |
|---|---|
void |
init(boolean forEncryption,
CipherParameters privParam,
CipherParameters pubParam,
CipherParameters param)
Initialise the encryptor. |
byte[] |
processBlock(byte[] in,
int inOff,
int inLen)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IESEngine(BasicAgreement agree,
DerivationFunction kdf,
Mac mac)
agree - the key agreement used as the basis for the encryptionkdf - the key derivation function used for byte generationmac - the message authentication code generator for the message
public IESEngine(BasicAgreement agree,
DerivationFunction kdf,
Mac mac,
BufferedBlockCipher cipher)
agree - the key agreement used as the basis for the encryptionkdf - the key derivation function used for byte generationmac - the message authentication code generator for the messagecipher - the cipher to used for encrypting the message| Method Detail |
|---|
public void init(boolean forEncryption,
CipherParameters privParam,
CipherParameters pubParam,
CipherParameters param)
forEncryption - whether or not this is encryption/decryption.privParam - our private key parameterspubParam - the recipient's/sender's public key parametersparam - encoding and derivation parameters.
public byte[] processBlock(byte[] in,
int inOff,
int inLen)
throws InvalidCipherTextException
InvalidCipherTextException
|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||