mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +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"]
|
||||
std = ["rand", "subtle/std"]
|
||||
alloc = []
|
||||
# This isn't used at the moment, but keep it around for future yolocrypto features.
|
||||
yolocrypto = []
|
||||
bench = []
|
||||
# Radix-51 arithmetic using u128
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
#![allow(non_snake_case)]
|
||||
|
||||
use edwards::CompressedEdwardsY;
|
||||
#[cfg(feature = "yolocrypto")]
|
||||
use ristretto::{RistrettoPoint, RistrettoBasepointTable};
|
||||
use montgomery::CompressedMontgomeryU;
|
||||
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
|
||||
/// `_TABLE`, which provides fast scalar multiplication.
|
||||
#[cfg(feature = "yolocrypto")]
|
||||
pub const RISTRETTO_BASEPOINT_POINT: RistrettoPoint = RistrettoPoint(ED25519_BASEPOINT_POINT);
|
||||
|
||||
/// `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, 0x10 ]);
|
||||
|
||||
#[cfg(feature = "yolocrypto")]
|
||||
/// The Ed25519 basepoint, as a RistrettoPoint
|
||||
pub const RISTRETTO_BASEPOINT_TABLE: RistrettoBasepointTable
|
||||
= RistrettoBasepointTable(ED25519_BASEPOINT_TABLE);
|
||||
|
|
|
|||
|
|
@ -74,8 +74,6 @@ pub mod scalar;
|
|||
pub mod edwards;
|
||||
pub mod montgomery;
|
||||
|
||||
// Feature gate decaf while our implementation is unfinished and probably incorrect.
|
||||
#[cfg(feature = "yolocrypto")]
|
||||
pub mod ristretto;
|
||||
|
||||
// Other miscelaneous utilities.
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@
|
|||
//! scheme](https://eprint.iacr.org/2015/673.pdf) to work on top of the
|
||||
//! Curve25519 group.
|
||||
//!
|
||||
//! Note: this code is currently feature-gated with the `yolocrypto`
|
||||
//! feature flag, because our implementation is still unfinished.
|
||||
//! Below are some notes on Ristretto, which are *NOT* a full writeup and which may have errors.
|
||||
//!
|
||||
//! # Notes on Ristretto
|
||||
//!
|
||||
|
|
|
|||
Loading…
Reference in a new issue