BLAKE2s
Creates a new instance of BLAKE2s.
Parameters
The secret to use for authenticating data.
The number of bits returned when doFinal is invoked.
Throws
when:
key size is less than 1
key size is greater than 32
bitStrength is less than 8
bitStrength is greater than 256
bitStrength is not a factor of 8
Creates a new instance of BLAKE2s.
Parameters
The secret to use for authenticating data.
The number of bits returned when doFinal is invoked.
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
when:
key size is less than 1
key size is greater than 32
bitStrength is less than 8
bitStrength is greater than 256
bitStrength is not a factor of 8
personalization is non-null and not exactly 8 bytes in length