Add some lightweight documentation.

This commit is contained in:
2018-10-27 15:01:38 -07:00
parent 0bec74b18c
commit 1cb77de521
13 changed files with 79 additions and 7 deletions

View File

@@ -1,4 +1,8 @@
/// Modular multiplication of the type.
pub trait ModMul<T> {
/// Modular multiplication using the given modulus type. If it's possible,
/// we suggest using Barrett values, which are much faster than doing
/// modulo with the number types.
fn modmul(&self, x: &Self, m: &T) -> Self;
}