tuweni / org.apache.tuweni.rlpx / EthereumIESEncryptionEngine

EthereumIESEncryptionEngine

open class EthereumIESEncryptionEngine (source)

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.

Constructors

<init>

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.

EthereumIESEncryptionEngine(agree: BasicAgreement!, kdf: DerivationFunction!, mac: Mac!, commonMac: ByteArray!, cipher: BufferedBlockCipher!)

Functions

getLengthTag

open fun getLengthTag(p2: ByteArray!): ByteArray!

init

Initialise the encryptor.

open fun init(forEncryption: Boolean, privParam: CipherParameters!, pubParam: CipherParameters!, params: CipherParameters!): Unit

processBlock

open fun processBlock(in: ByteArray!, inOff: Int, inLen: Int): ByteArray!