def hex_bytes

qasim-bend-kit@0.1.0.2 · libs/AES256GCM.bend:224

import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES256GCM
import Base

224def hex_bytes(+bytes: List<&2, U32>) -> String:
225    match bytes:
226        case Nil{}: ""
227        case +byte <> tail:
228            +normalized = hex_mask(byte, 255)
229            SCon{hex_digit(U32.shrn(normalized, 4n)),
230                SCon{hex_digit(normalized), hex_bytes(tail)}}

Uses (6)

Used by (19)