tuweni / org.apache.tuweni.rlpx / EthereumIESEncryptionEngine / init

init

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

Initialise the encryptor.

Parameters

forEncryption - Boolean: whether or not this is encryption/decryption.

privParam - CipherParameters!: our private key parameters

pubParam - CipherParameters!: the recipient's/sender's public key parameters

params - CipherParameters!: encoding and derivation parameters, may be wrapped to include an IV for an underlying block cipher.