@std/crypto/blake2.ms#
Import each required symbol with import Name from "@std/crypto/blake2.ms".
blake2b Function#
Returns the BLAKE2b digest (RFC 7693) of data, length bytes long (default 64), keyed when key is not empty.
length must be 1 through 64 and key at most 64 bytes, or the call faults.
blake2b("abc".to_bytes()) begins with the bytes ba80a53f981c4d0d.
Manuscript
fn blake2b(data Bytes, key Bytes = Bytes([]), length Int = 64) Bytes { ... }blake2s Function#
Returns the BLAKE2s digest (RFC 7693) of data, length bytes long (default 32), keyed when key is not empty.
length must be 1 through 32 and key at most 32 bytes, or the call faults.
blake2s("abc".to_bytes()) begins with the bytes 508c5e8c327c14e2.
Manuscript
fn blake2s(data Bytes, key Bytes = Bytes([]), length Int = 32) Bytes { ... }