Index Mathematics Conjectures nbv lettuce Widgets

bytes_to_bits

stdlib/bits/bytes_to_bits.nbv

bytes_to_bits(bytes)

Constrain a vector of bytes to 8 little-endian bits each and return all of the bits, byte i at 8 i .. 8 i + 8

Calls
bits/to_bits_exact
Precompiles
len!, loop_flat_map!
Used by
dilithium/mldsa/mldsa44_verify, mersenne61/mldsa/mldsa44_verify, milli/mldsa/mldsa44_verify, mldsa/mldsa44_parse, mldsa/mldsa44_parse_sig, typed/typed_bytes_check, typed/typed_lex_chacha, typed/typed_lex_check

Source

# Constrain a vector of bytes to 8 little-endian bits each and return all of
# the bits, byte i at 8 i .. 8 i + 8
(bytes)

static n = len! bytes
loop_flat_map! n, i {
  to_bits_exact(bytes[i], 8)
}