mldsa_limbs
stdlib/mldsa/mldsa_limbs.nbv
mldsa_limbs(bits)
Group little-endian bits into base 2^10 limbs (the last limb may be shorter). Works for both static and witness bits.
- Calls
bits/from_bits,slice- Precompiles
clone!,div_ceil!,len!,loop_flat_map!,min!- Used by
milli/mldsa/mldsa_intt_sub,milli/mldsa/mldsa_pointwise,milli/mldsa/mldsa_reduce,mldsa/mldsa_rej_ntt_poly,mldsa/mldsa_static_limbs
Source
# Group little-endian bits into base 2^10 limbs (the last limb may be shorter).
# Works for both static and witness bits.
(bits)
static n = len! bits
loop_flat_map! (div_ceil! n, 10), s {
from_bits(slice((clone! bits), 10 * s, (min! 10, n - 10 * s)))
}