Skip to main content

solve

Function solve 

Source
pub fn solve(a: &[Vec<u8>], b: &[u8]) -> Option<Vec<u8>>
Expand description

A particular solution of A x = b over GF(2^8), or None if the system is inconsistent. a is m×n (row per equation), b has length m; the returned x has length n with free variables set to zero. When the caller knows the system is square and full-rank (Oil-and-Vinegar signing after fixing the vinegar variables), the solution is unique.