Skip to main content

berlekamp_massey_gf2

Function berlekamp_massey_gf2 

Source
pub fn berlekamp_massey_gf2(s: &[bool]) -> (usize, Vec<bool>)
Expand description

Berlekamp–Massey over GF(2) — the shortest bit-LFSR. Thin wrapper over berlekamp_massey_field (see it for the full semantics). For an LFSR keystream L is the register length; for random ≈ n/2.