Skip to main content

modq_encode

Function modq_encode 

Source
pub fn modq_encode(out: Option<&mut [u8]>, x: &[u16], logn: u32) -> usize
Expand description

Encode a polynomial of mod-q values into packed 14-bit format. Returns the number of bytes written, or 0 on error. If out is None, returns the required output length.