Skip to main content

inv

Function inv 

Source
pub fn inv(a: u8) -> u8
Expand description

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.