We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e19cf commit 935b242Copy full SHA for 935b242
src/traits.rs
@@ -167,7 +167,8 @@ pub trait Inverter {
167
/// Output of an inversion.
168
type Output;
169
170
- /// Compute a modular inversion, returning `None` if the result is undefined (i.e. `value` is zero).
+ /// Compute a modular inversion, returning `None` if the result is undefined (i.e. if `value` is zero or isn't
171
+ /// prime relative to the modulus).
172
fn invert(&self, value: &Self::Output) -> CtOption<Self::Output>;
173
}
174
0 commit comments