Skip to main content

hint_bit_unpack

Function hint_bit_unpack 

Source
pub fn hint_bit_unpack<P: Params>(data: &[u8]) -> Option<[[i32; 256]; 8]>
Expand description

Unpack a hint vector from bytes.

Implements Algorithm 21 of FIPS 204 (HintBitUnpack). Inverse of hint_bit_pack. Performs validity checks on the encoding: indices must be strictly increasing within each polynomial, and cumulative counts must be non-decreasing and within bounds.

Returns None if the encoding is malformed.