| java.lang.Object org.bouncycastle.crypto.engines.IESEngine
IESEngine | public class IESEngine (Code) | | support class for constructing intergrated encryption ciphers
for doing basic message exchanges on top of key agreement ciphers
|
forEncryption | boolean forEncryption(Code) | | |
IESEngine | public IESEngine(BasicAgreement agree, DerivationFunction kdf, Mac mac)(Code) | | 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.
Parameters: agree - the key agreement used as the basis for the encryption Parameters: kdf - the key derivation function used for byte generation Parameters: mac - the message authentication code generator for the message |
IESEngine | public IESEngine(BasicAgreement agree, DerivationFunction kdf, Mac mac, BufferedBlockCipher cipher)(Code) | | set up for use in conjunction with a block cipher to handle the
message.
Parameters: agree - the key agreement used as the basis for the encryption Parameters: kdf - the key derivation function used for byte generation Parameters: mac - the message authentication code generator for the message Parameters: cipher - the cipher to used for encrypting the message |
init | public void init(boolean forEncryption, CipherParameters privParam, CipherParameters pubParam, CipherParameters param)(Code) | | Initialise the encryptor.
Parameters: forEncryption - whether or not this is encryption/decryption. Parameters: privParam - our private key parameters Parameters: pubParam - the recipient's/sender's public key parameters Parameters: param - encoding and derivation parameters. |
|
|