Top Description Fields Constructors Methods
org.bouncycastle.crypto.engines

public Class OldIESEngine

extends IESEngine
Class Inheritance
Imports
org.bouncycastle.crypto.BasicAgreement, .BufferedBlockCipher, .DerivationFunction, .Mac, org.bouncycastle.util.Pack

Support class for constructing integrated encryption ciphers for doing basic message exchanges on top of key agreement ciphers. Follows the description given in IEEE Std 1363a.

Field Summary

Inherited from org.bouncycastle.crypto.engines.IESEngine:
agreecipherforEncryptionkdfmacmacBufparamprivParampubParamV

Constructor Summary

AccessConstructor and Description
public
OldIESEngine(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
OldIESEngine(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.

Method Summary

Modifier and TypeMethod and Description
protected byte[]
Inherited from org.bouncycastle.crypto.engines.IESEngine:
getCiphergetMacinitinitinitprocessBlock

Constructor Detail

OldIESEngineback to summary
public 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.

Parameters
agree:BasicAgreement

the key agreement used as the basis for the encryption

kdf:DerivationFunction

the key derivation function used for byte generation

mac:Mac

the message authentication code generator for the message

OldIESEngineback to summary
public OldIESEngine(BasicAgreement agree, DerivationFunction kdf, Mac mac, BufferedBlockCipher cipher)

set up for use in conjunction with a block cipher to handle the message.

Parameters
agree:BasicAgreement

the key agreement used as the basis for the encryption

kdf:DerivationFunction

the key derivation function used for byte generation

mac:Mac

the message authentication code generator for the message

cipher:BufferedBlockCipher

the cipher to used for encrypting the message

Method Detail

getLengthTagback to summary
protected byte[] getLengthTag(byte[] p2)

Overrides org.bouncycastle.crypto.engines.IESEngine.getLengthTag.