mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Remove 'yolocrypto' from Ristretto
This commit is contained in:
parent
b6bfc79cd1
commit
8c3ae7f010
4 changed files with 2 additions and 7 deletions
|
|
@ -51,6 +51,7 @@ nightly = ["radix_51", "subtle/nightly"]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = ["rand", "subtle/std"]
|
std = ["rand", "subtle/std"]
|
||||||
alloc = []
|
alloc = []
|
||||||
|
# This isn't used at the moment, but keep it around for future yolocrypto features.
|
||||||
yolocrypto = []
|
yolocrypto = []
|
||||||
bench = []
|
bench = []
|
||||||
# Radix-51 arithmetic using u128
|
# Radix-51 arithmetic using u128
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
use edwards::CompressedEdwardsY;
|
use edwards::CompressedEdwardsY;
|
||||||
#[cfg(feature = "yolocrypto")]
|
|
||||||
use ristretto::{RistrettoPoint, RistrettoBasepointTable};
|
use ristretto::{RistrettoPoint, RistrettoBasepointTable};
|
||||||
use montgomery::CompressedMontgomeryU;
|
use montgomery::CompressedMontgomeryU;
|
||||||
use scalar::Scalar;
|
use scalar::Scalar;
|
||||||
|
|
@ -63,7 +62,6 @@ pub const BASE_COMPRESSED_MONTGOMERY: CompressedMontgomeryU =
|
||||||
|
|
||||||
/// The Ed25519 basepoint, as a `RistrettoPoint`. This is called `_POINT` to distinguish it from
|
/// The Ed25519 basepoint, as a `RistrettoPoint`. This is called `_POINT` to distinguish it from
|
||||||
/// `_TABLE`, which provides fast scalar multiplication.
|
/// `_TABLE`, which provides fast scalar multiplication.
|
||||||
#[cfg(feature = "yolocrypto")]
|
|
||||||
pub const RISTRETTO_BASEPOINT_POINT: RistrettoPoint = RistrettoPoint(ED25519_BASEPOINT_POINT);
|
pub const RISTRETTO_BASEPOINT_POINT: RistrettoPoint = RistrettoPoint(ED25519_BASEPOINT_POINT);
|
||||||
|
|
||||||
/// `l` is the order of base point, i.e. 2^252 +
|
/// `l` is the order of base point, i.e. 2^252 +
|
||||||
|
|
@ -87,7 +85,6 @@ pub const l_minus_2: Scalar = Scalar([ 0xeb, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10 ]);
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10 ]);
|
||||||
|
|
||||||
#[cfg(feature = "yolocrypto")]
|
|
||||||
/// The Ed25519 basepoint, as a RistrettoPoint
|
/// The Ed25519 basepoint, as a RistrettoPoint
|
||||||
pub const RISTRETTO_BASEPOINT_TABLE: RistrettoBasepointTable
|
pub const RISTRETTO_BASEPOINT_TABLE: RistrettoBasepointTable
|
||||||
= RistrettoBasepointTable(ED25519_BASEPOINT_TABLE);
|
= RistrettoBasepointTable(ED25519_BASEPOINT_TABLE);
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,6 @@ pub mod scalar;
|
||||||
pub mod edwards;
|
pub mod edwards;
|
||||||
pub mod montgomery;
|
pub mod montgomery;
|
||||||
|
|
||||||
// Feature gate decaf while our implementation is unfinished and probably incorrect.
|
|
||||||
#[cfg(feature = "yolocrypto")]
|
|
||||||
pub mod ristretto;
|
pub mod ristretto;
|
||||||
|
|
||||||
// Other miscelaneous utilities.
|
// Other miscelaneous utilities.
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,7 @@
|
||||||
//! scheme](https://eprint.iacr.org/2015/673.pdf) to work on top of the
|
//! scheme](https://eprint.iacr.org/2015/673.pdf) to work on top of the
|
||||||
//! Curve25519 group.
|
//! Curve25519 group.
|
||||||
//!
|
//!
|
||||||
//! Note: this code is currently feature-gated with the `yolocrypto`
|
//! Below are some notes on Ristretto, which are *NOT* a full writeup and which may have errors.
|
||||||
//! feature flag, because our implementation is still unfinished.
|
|
||||||
//!
|
//!
|
||||||
//! # Notes on Ristretto
|
//! # Notes on Ristretto
|
||||||
//!
|
//!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue