bindings/blake2

Functions

pub fn hash2b(m: BitArray, output_size: Int) -> BitArray

Blake2b hashing

Note that the output_size is in bytes, not bits

  • 64 => Blake2b-512 (default)
  • 48 => Blake2b-384
  • 32 => Blake2b-256

Per the specification, any output_size between 1 and 64 bytes is supported.

Search Document