refactored RingRNS

This commit is contained in:
Jean-Philippe Bossuat
2025-01-06 14:40:03 +01:00
parent a074886b3e
commit c69bd6985a
8 changed files with 28 additions and 34 deletions

View File

@@ -19,7 +19,7 @@ pub struct Table<O> {
}
impl Table<u64> {
pub fn new(prime: Prime<u64>, nth_root: u64) -> Self {
pub fn new(prime: Prime<u64>, nth_root: u64) -> Table<u64> {
assert!(
nth_root & (nth_root - 1) == 0,
"invalid argument: nth_root = {} is not a power of two",