From 6e578559523881407af774dc73455749a00fd562 Mon Sep 17 00:00:00 2001 From: rlee287 Date: Sun, 22 Oct 2023 14:01:47 -0700 Subject: [PATCH] Add Cargo.{toml, lock} changes for CTX-like constructions --- Cargo.lock | 2 ++ aead/Cargo.toml | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 2033c0a1..151fc6a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,8 +10,10 @@ dependencies = [ "blobby", "bytes", "crypto-common 0.1.6", + "digest 0.10.7", "generic-array", "heapless", + "hmac 0.12.1", "subtle", ] diff --git a/aead/Cargo.toml b/aead/Cargo.toml index a0ca896f..5d58132a 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -24,7 +24,12 @@ arrayvec = { version = "0.7", optional = true, default-features = false } blobby = { version = "0.3", optional = true } bytes = { version = "1", optional = true, default-features = false } heapless = { version = "0.7", optional = true, default-features = false } +# Dependencies needed for committing_ae subtle = { version = "2.5", optional = true, default-features = false } +# Keep digest at 0.10.x instead of 0.11.0-pre for now +# Avoids depending on multiple versions of crypto-common +digest = { version = "0.10.7", optional = true, features = ["mac"] } +hmac = { version = "0.12.1", optional = true } [features] default = ["rand_core"] @@ -34,7 +39,7 @@ dev = ["blobby"] getrandom = ["crypto-common/getrandom", "rand_core"] rand_core = ["crypto-common/rand_core"] stream = [] -committing_ae = ["subtle"] +committing_ae = ["subtle", "digest", "hmac"] [package.metadata.docs.rs] all-features = true