Engine

expect constructor(key: ByteArray)(source)

Initializes a new Engine with the provided key with the default resetOnDoFinal value of true (i.e. Engine.reset will be called automatically after Engine.doFinal or Engine.doFinalInto have been invoked).

Parameters

key

The key that this Engine instance will use to apply its function to

Throws

IllegalArgumentException

if key is empty


expect constructor(key: ByteArray, resetOnDoFinal: Boolean)(source)

Initializes a new Engine with the provided key and resetOnDoFinal configuration.

Parameters

key

the key that this Engine instance will use to apply its function to

resetOnDoFinal

See Engine.resetOnDoFinal documentation

Throws

IllegalArgumentException

if key is empty


protected expect constructor(other: Mac.Engine)(source)

Creates a new Engine from other, copying its state.

actual constructor(key: ByteArray)(source)

Initializes a new Engine with the provided key with the default resetOnDoFinal value of true (i.e. Engine.reset will be called automatically after Engine.doFinal or Engine.doFinalInto have been invoked).

Parameters

key

The key that this Engine instance will use to apply its function to

Throws

IllegalArgumentException

if key is empty


actual constructor(key: ByteArray, resetOnDoFinal: Boolean)(source)

Initializes a new Engine with the provided key and resetOnDoFinal configuration.

Parameters

key

the key that this Engine instance will use to apply its function to

resetOnDoFinal

See Engine.resetOnDoFinal documentation

Throws

IllegalArgumentException

if key is empty


protected actual constructor(other: Mac.Engine)(source)

Creates a new Engine from other, copying its state.

actual constructor(key: ByteArray)(source)

Initializes a new Engine with the provided key with the default resetOnDoFinal value of true (i.e. Engine.reset will be called automatically after Engine.doFinal or Engine.doFinalInto have been invoked).

Parameters

key

The key that this Engine instance will use to apply its function to

Throws

IllegalArgumentException

if key is empty


actual constructor(key: ByteArray, resetOnDoFinal: Boolean)(source)

Initializes a new Engine with the provided key and resetOnDoFinal configuration.

Parameters

key

the key that this Engine instance will use to apply its function to

resetOnDoFinal

See Engine.resetOnDoFinal documentation

Throws

IllegalArgumentException

if key is empty


protected actual constructor(other: Mac.Engine)(source)

Creates a new Engine from other, copying its state.