BLAKE2b

constructor(key: ByteArray, bitStrength: Int)(source)

Creates a new instance of BLAKE2b.

Parameters

key

The secret to use for authenticating data.

bitStrength

The number of bits returned when doFinal is invoked.

Throws

when:

when:

  • key size is less than 1

  • key size is greater than 64


constructor(key: ByteArray, bitStrength: Int, personalization: ByteArray?)(source)

Creates a new instance of BLAKE2b.

Parameters

key

The secret to use for authenticating data.

bitStrength

The number of bits returned when doFinal is invoked.

personalization

A user selected customization bit string to define a variant of the function. When no customization is desired, personalization must be set to a null value. Must be 16 bytes in length, or null.

Throws

when:

when:

  • key size is less than 1

  • key size is greater than 64