mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
Update the fiat backend to use the fiat-crypto package
https://crates.io/crates/fiat-crypto
This commit is contained in:
parent
d684e13f09
commit
4ce680d3aa
3 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ serde = { version = "1.0", default-features = false, optional = true, features =
|
||||||
# https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161
|
# https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161
|
||||||
packed_simd = { version = "0.3.4", package = "packed_simd_2", features = ["into_bits"], optional = true }
|
packed_simd = { version = "0.3.4", package = "packed_simd_2", features = ["into_bits"], optional = true }
|
||||||
zeroize = { version = "1", default-features = false }
|
zeroize = { version = "1", default-features = false }
|
||||||
curve25519-fiat = { git="https://github.com/calibra/rust-curve25519-fiat.git", version = "0.1.0", optional = true}
|
fiat-crypto = { version = "0.1.0", optional = true}
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
nightly = ["subtle/nightly"]
|
nightly = ["subtle/nightly"]
|
||||||
|
|
@ -62,7 +62,7 @@ u32_backend = []
|
||||||
# The u64 backend uses u64s with u128 products.
|
# The u64 backend uses u64s with u128 products.
|
||||||
u64_backend = []
|
u64_backend = []
|
||||||
# The fiat-u64 backend uses u64s with u128 products.
|
# The fiat-u64 backend uses u64s with u128 products.
|
||||||
fiat_u64_backend = ["curve25519-fiat"]
|
fiat_u64_backend = ["fiat-crypto"]
|
||||||
# The SIMD backend uses parallel formulas, using either AVX2 or AVX512-IFMA.
|
# The SIMD backend uses parallel formulas, using either AVX2 or AVX512-IFMA.
|
||||||
simd_backend = ["nightly", "u64_backend", "packed_simd"]
|
simd_backend = ["nightly", "u64_backend", "packed_simd"]
|
||||||
# DEPRECATED: this is now an alias for `simd_backend` and may be removed
|
# DEPRECATED: this is now an alias for `simd_backend` and may be removed
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use subtle::ConditionallySelectable;
|
||||||
|
|
||||||
use zeroize::Zeroize;
|
use zeroize::Zeroize;
|
||||||
|
|
||||||
use curve25519_fiat::curve25519_64::*;
|
use fiat_crypto::curve25519_64::*;
|
||||||
|
|
||||||
/// A `FieldElement51` represents an element of the field
|
/// A `FieldElement51` represents an element of the field
|
||||||
/// \\( \mathbb Z / (2\^{255} - 19)\\).
|
/// \\( \mathbb Z / (2\^{255} - 19)\\).
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ extern crate rand_core;
|
||||||
extern crate zeroize;
|
extern crate zeroize;
|
||||||
|
|
||||||
#[cfg(feature = "fiat_u64_backend")]
|
#[cfg(feature = "fiat_u64_backend")]
|
||||||
extern crate curve25519_fiat;
|
extern crate fiat_crypto;
|
||||||
|
|
||||||
// Used for traits related to constant-time code.
|
// Used for traits related to constant-time code.
|
||||||
extern crate subtle;
|
extern crate subtle;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue