1 2 3 4 5 6 7
pub fn add_assign_binary(dest: &mut [u64], src: &[u64]) { let len = dest.len(); for (dest, &src) in dest.iter_mut().zip(&src[..len]) { // Addition over GF(2) is defined as XOR *dest ^= src; } }
1 2 3 4 5 6 7
pub fn add_assign_binary(dest: &mut [u64], src: &[u64]) { let len = dest.len(); for (dest, &src) in dest.iter_mut().zip(&src[..len]) { // Addition over GF(2) is defined as XOR *dest ^= src; } }