doFinalInto

expect fun doFinalInto(dest: ByteArray, destOffset: Int): Int(source)

Completes the computation, performing final operations and placing the resultant bytes into the provided dest array starting at index destOffset. The Mac is reset afterward.

Return

The number of bytes put into dest (i.e. the macLength)

Throws

IndexOutOfBoundsException

if destOffset is inappropriate

if macLength number of bytes are unable to fit into dest for provided destOffset

actual fun doFinalInto(dest: ByteArray, destOffset: Int): Int(source)

Completes the computation, performing final operations and placing the resultant bytes into the provided dest array starting at index destOffset. The Mac is reset afterward.

Return

The number of bytes put into dest (i.e. the macLength)

Throws

IndexOutOfBoundsException

if destOffset is inappropriate

if macLength number of bytes are unable to fit into dest for provided destOffset

actual fun doFinalInto(dest: ByteArray, destOffset: Int): Int(source)

Completes the computation, performing final operations and placing the resultant bytes into the provided dest array starting at index destOffset. The Mac is reset afterward.

Return

The number of bytes put into dest (i.e. the macLength)

Throws

IndexOutOfBoundsException

if destOffset is inappropriate

if macLength number of bytes are unable to fit into dest for provided destOffset