forked from dalek-cryptography/curve25519-dalek
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52986bc
commit 74210d2
Showing
30 changed files
with
100 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Pluggable implementations for different architectures. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Internal curve representations which are not part of the public API. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Serial implementations of field, scalar, point arithmetic. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Implementations of various scalar multiplication algorithms. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Implementation of the interleaved window method, also known as Straus' method. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
#![allow(non_snake_case)] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! This module contains various constants (such as curve parameters | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; coding: utf-8; -*- | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Field arithmetic modulo \\(p = 2\^{255} - 19\\), using \\(32\\)-bit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! The `u32` backend uses `u32`s and a `(u32, u32) -> u64` multiplier. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! This module contains backend-specific constant values, such as the 64-bit limbs of curve constants. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; coding: utf-8; -*- | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Field arithmetic modulo \\(p = 2\^{255} - 19\\), using \\(64\\)-bit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2018 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2018 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! The `u64` backend uses `u64`s and a `(u64, u64) -> u128` multiplier. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! This module contains constants used by the AVX2 backend. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Parallel Edwards Arithmetic for Curve25519. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; coding: utf-8; -*- | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! An implementation of 4-way vectorized 32bit field arithmetic using | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
#![cfg_attr( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// -*- mode: rust; coding: utf-8; -*- | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2018-2019 Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
#![allow(non_snake_case)] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
// Conditionally include the notes if we're on nightly (so we can include docs at all). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
pub mod variable_base; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
#![allow(non_snake_case)] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
#![allow(non_snake_case)] | ||
|
||
use backend::vector::BASEPOINT_ODD_LOOKUP_TABLE; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Various constants, such as the Ristretto and Ed25519 basepoints. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
#![no_std] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2019 Isis Lovecruft, Henry de Valence | ||
// Copyright (c) 2016-2021 isis agora lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - Isis Agora Lovecruft <[email protected]> | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Internal macros. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// See LICENSE for licensing information. | ||
// | ||
// Authors: | ||
// - isis agora lovecruft <[email protected]> | ||
// - Henry de Valence <[email protected]> | ||
|
||
//! Crate-local prelude (for alloc-dependent features like `Vec`) | ||
// TODO: switch to alloc::prelude | ||
|
Oops, something went wrong.