doFinalInto

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

Called to complete the computation, performing final operations and placing the resultant bytes into the provided dest array starting at index destOffset. The Engine is reset afterward.

Implementations should override this addition to the API for performance reasons. If overridden, super.doFinalInto should not be called.

NOTE: The public Mac.doFinalInto function always checks dest for capacity of macLength, starting at destOffset, before calling this function.

Parameters

dest

The array to place resultant bytes

destOffset

The index to begin placing bytes into dest

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

Called to complete the computation, performing final operations and placing the resultant bytes into the provided dest array starting at index destOffset. The Engine is reset afterward.

Implementations should override this addition to the API for performance reasons. If overridden, super.doFinalInto should not be called.

NOTE: The public Mac.doFinalInto function always checks dest for capacity of macLength, starting at destOffset, before calling this function.

Parameters

dest

The array to place resultant bytes

destOffset

The index to begin placing bytes into dest

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

Called to complete the computation, performing final operations and placing the resultant bytes into the provided dest array starting at index destOffset. The Engine is reset afterward.

Implementations should override this addition to the API for performance reasons. If overridden, super.doFinalInto should not be called.

NOTE: The public Mac.doFinalInto function always checks dest for capacity of macLength, starting at destOffset, before calling this function.

Parameters

dest

The array to place resultant bytes

destOffset

The index to begin placing bytes into dest