reset

expect abstract fun reset(newKey: ByteArray)(source)

Resets the Engine and will reinitialize it with the provided key.

NOTE: newKey is checked to be non-empty by the Mac abstraction before passing it here. Implementations should ensure any old key material is zeroed out.

Throws

IllegalArgumentException

if newKey is a length inappropriate for the Mac implementation.

actual abstract fun reset(newKey: ByteArray)(source)

Resets the Engine and will reinitialize it with the provided key.

NOTE: newKey is checked to be non-empty by the Mac abstraction before passing it here. Implementations should ensure any old key material is zeroed out.

Throws

IllegalArgumentException

if newKey is a length inappropriate for the Mac implementation.

actual abstract fun reset(newKey: ByteArray)(source)

Resets the Engine and will reinitialize it with the provided key.

NOTE: newKey is checked to be non-empty by the Mac abstraction before passing it here. Implementations should ensure any old key material is zeroed out.

Throws

IllegalArgumentException

if newKey is a length inappropriate for the Mac implementation.