Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/fields/csidh.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

// CSIDH - 512
const CSIDH_512_MODULUS: [u64; 8] = [
0x1b81b90533c6c87b, 0xc2721bf457aca835, 0x516730cc1f0b4f25, 0xa7aac6c567f35507,
0x5afbfcc69322c9cd, 0xb42d083aedc88c42, 0xfc8ab0d15e3e4c4a, 0x65b48e8f740f89bf,
];



fp2::define_fp2_from_modulus!(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont need the extension, right? We can use define_fp_core https://docs.rs/fp2/latest/fp2/macro.define_fp_core.html

typename = Csidh512,
base_typename = Csidh512Base,
modulus = CSIDH_512_MODULUS,
);

#[cfg(test)]
mod test_csidh_arithmetic {
use super::{Csidh512Base};

fp2::define_fp_tests!(Csidh512Base);
//fp2::define_fp2_tests!(Csidh512, CSIDH_512_MODULUS, 2);
}
2 changes: 2 additions & 0 deletions src/fields/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
pub mod csidh;
pub mod sike;
pub mod sqisign;