add macros

This commit is contained in:
bunnie 2021-06-26 02:11:37 +08:00
parent b4e8accf38
commit 6e2cf5ab43
2 changed files with 9 additions and 1 deletions

View file

@ -50,7 +50,6 @@ 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 }
engine25519-as = { path="../engine25519-as", default-features = false, features = [] }
rand = { version = "0.7", default-features = false, features = [] }
volatile = "0.2.6"
#pac = { path = "../../../../sim_support/rust/pac" } # used in test simulation environment, need to figure out how to make a switch for this
@ -58,6 +57,12 @@ betrusted-pac = { path = "../betrusted-pac" }
#pac = { package = "betrusted-pac" }
fiat-crypto = { version = "0.1.6", optional = true}
[dependencies.engine25519-as]
git="https://github.com/betrusted-io/engine25519-as.git"
rev="0bafc1ff8f58b66189d8c2f9ab7046cbbef77e6e"
default-features = false
features = []
[features]
nightly = ["subtle/nightly"]
default = ["std", "u32_backend"]

View file

@ -64,6 +64,9 @@ use subtle::{ConditionallyNegatable, ConditionallySelectable};
use zeroize::Zeroize;
#[macro_use]
use engine25519_as;
/// Holds the \\(u\\)-coordinate of a point on the Montgomery form of
/// Curve25519 or its twist.
#[derive(Copy, Clone, Debug, Hash)]