~/bend-docscommunity

src/crypto/blake/blake2b/hex.bend checks

raw source on the hub · import 0xd9a2fae439ac7ff9e21e0853948f94fe/src/crypto/blake/blake2b/hex.bend as Hex

Lowercase hex of a 64-byte BLAKE2b digest (sixteen little-endian words).

1 import
import Base

Definitions

def hex_digit_if source · line 4 · raw

@x:U32 -> @small:Bool -> Char

def hex_digit source · line 11 · raw

@+x:U32 -> Char

def hex_word_go source · line 14 · raw

@n:Nat -> @+x:U32 -> @acc:String -> String

def hex_byte source · line 21 · raw

@+x:U32 -> String

def hex_word source · line 24 · raw

@+x:U32 -> String

def hex_walk source · line 28 · raw

@n:Nat -> @+index:U32 -> @pair:Pair(Array<U32>, U32) -> String

Formatting helper walks the sixteen digest words; it does not create a digest list.

def hex source · line 33 · raw

@a:Array<U32> -> String