1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// This file is part of sidh-rs.
// Copyright (c) 2017 Erkan Tairi
// See LICENSE for licensing information.
//
// Author:
// - Erkan Tairi <erkan.tairi@gmail.com>
//
//#![deny(missing_docs)] // Refuse to compile if documentation is missing.
//! # sidh
//!
//! **An efficient supersingular isogeny-based cryptography library written in Rust.**
//!
//! The library includes the ephemeral Diffie-Hellman key exchange (SIDH). This package
//! does **not** implement SIDH key validation, so it should only be used for ephemeral
//! Diffie-Hellman, i.e. each keypair should be used at most once. This scheme is conjectured
//! to be secure against quantum computer attacks.
//!
//! This library follows the usual naming convention, writing "Alice" for the party using
//! `2^e`-isogenies and "Bob" for the party using `3^e`-isogenies.
//!
//! TThe library provides a generic field arithmetic implementation, therefore, making it
//! compatible with many different architectures (such as x64, x86, and ARM).
//-----------------------------------------------------------------------------//
// External Dependencies //
//-----------------------------------------------------------------------------//
extern crate core;
extern crate rand;
extern crate rand_core;
extern crate heapless;
extern crate test;
extern crate quickcheck;
// Used for traits related to constant-time code.
extern crate subtle;
//-----------------------------------------------------------------------------//
// Internal Modules //
//-----------------------------------------------------------------------------//
// Arithmetic backends (for x64 and x86 arhitectures) live here.
pub
// Finite field arithmetic.
pub
// Internal curve operations which are not part of the public API.
pub
// Internal isogeny operations which are not part of the public API.
pub
//-----------------------------------------------------------------------------//
// Public Modules //
//-----------------------------------------------------------------------------//
// Useful constants.
// Supersingular Isogeny Diffie-Hellman (SIDH) operations.