Extend modular addition to Barrett constants.
This commit is contained in:
@@ -9,6 +9,7 @@ pub trait ModMul<T=Self> {
|
||||
}
|
||||
|
||||
// This is algorithm 14.12 from "Handbook of Applied Cryptography"
|
||||
#[inline(always)]
|
||||
pub fn raw_multiplication(x: &[u64], y: &[u64], w: &mut [u64])
|
||||
{
|
||||
assert_eq!(x.len(), y.len());
|
||||
|
||||
Reference in New Issue
Block a user