From b30b88156a2f5955d0042990507ab8aa7b50855b Mon Sep 17 00:00:00 2001 From: Guillaume Endignoux Date: Fri, 10 Jul 2020 10:38:41 +0200 Subject: [PATCH] Update libraries/ to the new libtock. --- libraries/crypto/Cargo.toml | 4 ++-- libraries/crypto/src/lib.rs | 1 - libraries/crypto/src/rng256.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libraries/crypto/Cargo.toml b/libraries/crypto/Cargo.toml index 40a2f2f..ead1294 100644 --- a/libraries/crypto/Cargo.toml +++ b/libraries/crypto/Cargo.toml @@ -10,10 +10,10 @@ license = "Apache-2.0" edition = "2018" [dependencies] -libtock = { path = "../../third_party/libtock-rs" } +libtock_drivers = { path = "../../third_party/libtock-drivers" } cbor = { path = "../cbor" } arrayref = "0.3.6" -subtle = { version = "2.2", default-features = false, features = ["nightly"] } +subtle = { version = "2.2.3", default-features = false, features = ["nightly"] } byteorder = { version = "1", default-features = false } hex = { version = "0.3.2", default-features = false, optional = true } ring = { version = "0.16.11", optional = true } diff --git a/libraries/crypto/src/lib.rs b/libraries/crypto/src/lib.rs index bfc129e..031cfa3 100644 --- a/libraries/crypto/src/lib.rs +++ b/libraries/crypto/src/lib.rs @@ -21,7 +21,6 @@ extern crate subtle; #[macro_use] extern crate arrayref; extern crate byteorder; -extern crate libtock; #[macro_use] extern crate cbor; diff --git a/libraries/crypto/src/rng256.rs b/libraries/crypto/src/rng256.rs index 572e21e..9657bf2 100644 --- a/libraries/crypto/src/rng256.rs +++ b/libraries/crypto/src/rng256.rs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -use libtock::rng; +use libtock_drivers::rng; // Lightweight RNG trait to generate uniformly distributed 256 bits. pub trait Rng256 {