Function qrcode::ec::create_error_correction_code
[−]
[src]
pub fn create_error_correction_code(data: &[u8], ec_code_size: usize) -> Vec<u8>
Creates the error correction code in N bytes.
This method only supports computing the error-correction code up to 69 bytes. Longer blocks will result in task panic.
This method treats the data as a polynomial of the form (a[0] xm+n + a[1] xm+n-1 + … + a[m] xn) in GF(256), and then computes the polynomial modulus with a generator polynomial of degree N.