Update the fiat backend to use the fiat-crypto package

https://crates.io/crates/fiat-crypto
This commit is contained in:
François Garillot 2020-02-17 09:42:41 -05:00
parent d684e13f09
commit 4ce680d3aa
No known key found for this signature in database
GPG key ID: AC66C67853005854
3 changed files with 4 additions and 4 deletions

View file

@ -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
packed_simd = { version = "0.3.4", package = "packed_simd_2", features = ["into_bits"], optional = true }
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]
nightly = ["subtle/nightly"]
@ -62,7 +62,7 @@ u32_backend = []
# The u64 backend uses u64s with u128 products.
u64_backend = []
# 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.
simd_backend = ["nightly", "u64_backend", "packed_simd"]
# DEPRECATED: this is now an alias for `simd_backend` and may be removed

View file

@ -22,7 +22,7 @@ use subtle::ConditionallySelectable;
use zeroize::Zeroize;
use curve25519_fiat::curve25519_64::*;
use fiat_crypto::curve25519_64::*;
/// A `FieldElement51` represents an element of the field
/// \\( \mathbb Z / (2\^{255} - 19)\\).

View file

@ -46,7 +46,7 @@ extern crate rand_core;
extern crate zeroize;
#[cfg(feature = "fiat_u64_backend")]
extern crate curve25519_fiat;
extern crate fiat_crypto;
// Used for traits related to constant-time code.
extern crate subtle;