Skip to main content

simple_bit_unpack

Function simple_bit_unpack 

Source
pub fn simple_bit_unpack(data: &[u8], b: u32, w: &mut [i32; 256])
Expand description

Unpack a polynomial whose coefficients lie in [0, b].

Implements Algorithm 18 of FIPS 204 (SimpleBitUnpack). Inverse of simple_bit_pack.

  • data: packed byte data.
  • b: upper bound on coefficient values.
  • w: output polynomial (filled with decoded coefficients).