BLAKE2s

constructor(bitStrength: Int)(source)

Creates a new BLAKE2s instance.

Parameters

bitStrength

The number of bits returned when digest is invoked.

Throws

IllegalArgumentException

when:


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

Creates a new BLAKE2s instance.

Parameters

bitStrength

The number of bits returned when digest 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 8 bytes in length, or null.

Throws

IllegalArgumentException

when: