def hex_word_go

mylsm-lsm-store@0.6.0.1 · src/hub_sha/core.bend:3598

import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Core
import Base

3598# Decode hexadecimal word go for the SHA-256 compression implementation.
3599def hex_word_go(digit_count: Nat, +word: U32, acc: String) -> String:
3600  match digit_count:
3601    case 0n:
3602      acc
3603    case 1n+p:
3604      hex_word_go(p, U32.shrn(word, 4n), SCon{hex_digit((word .&. 15 : U32)), acc})

Uses (6)

Used by (1)