Modular exponentiation with Barrett reduction. Seems slow. :(
This commit is contained in:
@@ -9,7 +9,6 @@ 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());
|
||||
@@ -212,4 +211,4 @@ macro_rules! generate_tests {
|
||||
}
|
||||
}
|
||||
|
||||
generate_tests!(U192, U256, U384, U512, U576, U1024, U2048, U3072, U4096, U8192, U15360);
|
||||
generate_tests!(U192, U256, U384, U512, U576, U1024, U2048, U3072, U4096, U8192, U15360);
|
||||
|
||||
Reference in New Issue
Block a user