def hex
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aes/aes.bend as Aesimport Base
213# Lowercase hexadecimal of a byte list.
214def hex(bytes: List<&2, U32>) -> String:
215 match bytes:
216 case Nil{}:
217 ""
218 case +b <> rest:
219 SCon{hex_digit(U32.and(15, U32.shrn(b, 4n))), SCon{hex_digit(U32.and(15, b)), hex(rest)}}
Uses (6)
Used by (0)
No other definition uses this definition.