public class OldIESEngine extends IESEngine
Constructor and Description |
---|
OldIESEngine(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.
|
OldIESEngine(BasicAgreement agree,
DerivationFunction kdf,
Mac mac,
BufferedBlockCipher cipher)
set up for use in conjunction with a block cipher to handle the
message.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getLengthTag(byte[] p2) |
public OldIESEngine(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 messagepublic OldIESEngine(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 messageprotected byte[] getLengthTag(byte[] p2)
getLengthTag
in class IESEngine