pub fn inv(a: u8) -> u8
Multiplicative inverse. inv(a) = a^254 since the group has order 255; inv(0) = 0 — 0 has no inverse, so this is a safe sentinel rather than the silent garbage a raw table lookup would return.
inv(a) = a^254
inv(0) = 0
0