From 6e2cf5ab43530e59c695194302c0069c283a6297 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 26 Jun 2021 02:11:37 +0800 Subject: [PATCH] add macros --- Cargo.toml | 7 ++++++- src/montgomery.rs | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ddca3e3..b067c60 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/src/montgomery.rs b/src/montgomery.rs index c3d875b..022a6a5 100644 --- a/src/montgomery.rs +++ b/src/montgomery.rs @@ -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)]