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.
This reverts commit 1491f0d. This is due to code which was erroneously deleted during the commit, due to being based off the wrong version, see dalek-cryptography#361.
- Loading branch information
1 parent
b9710d5
commit 52986bc
Showing
32 changed files
with
187 additions
and
100 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// -*- mode: rust; coding: utf-8; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// -*- mode: rust; coding: utf-8; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2018 Henry de Valence | ||
// Copyright (c) 2016-2018 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// -*- mode: rust; coding: utf-8; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,10 @@ | ||
// -*- mode: rust; -*- | ||
// -*- mode: rust; coding: utf-8; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2018-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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,14 +1,12 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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,12 +1,11 @@ | ||
// -*- mode: rust; -*- | ||
// | ||
// This file is part of curve25519-dalek. | ||
// Copyright (c) 2016-2021 isis lovecruft | ||
// Copyright (c) 2016-2019 Henry de Valence | ||
// Copyright (c) 2016-2019 Isis Lovecruft, 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. | ||
|
Oops, something went wrong.