Skip to main content

Module encoding

Module encoding 

Source
Expand description

Packing of polynomials into coefficients with a specified number of bits.

Traits§

ArraySize
An array length with other useful properties
Encode
Encoding trait.
EncodingSize
An integer that can describe encoded polynomials.
VectorEncodingSize
An integer that can describe encoded vectors.

Functions§

byte_decode
FIPS 203: Algorithm 5 ByteDecode_d(F) FIPS 204: Algorithm 18 SimpleBitUnpack
byte_encode
FIPS 203: Algorithm 4 ByteEncode_d. FIPS 204: Algorithm 16 SimpleBitPack.

Type Aliases§

DecodedValue
Decoded value.
EncodedPolynomial
Encoded polynomial.
EncodedPolynomialSize
Size of an encoded polynomial.
EncodedVector
Encoded vector.
EncodedVectorSize
Size of an encoded vector.
EncodingUnit 🔒