From dd511432b465b517f61b41826e0ac73038665905 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 7 Mar 2022 13:28:10 +0800 Subject: [PATCH] fix dangling reference in AES ctr mode `soft` implementation --- services/aes/src/soft/ctr.rs | 6 +++--- services/shellchat/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/aes/src/soft/ctr.rs b/services/aes/src/soft/ctr.rs index a288ab116..b919d0c53 100644 --- a/services/aes/src/soft/ctr.rs +++ b/services/aes/src/soft/ctr.rs @@ -2,11 +2,11 @@ // TODO(tarcieri): support generic CTR API -use super::{Aes128, Aes192, Aes256}; +use super::{Aes128Soft, Aes192, Aes256Soft}; /// AES-128 in CTR mode #[cfg_attr(docsrs, doc(cfg(feature = "ctr")))] -pub type Aes128Ctr = ::ctr::Ctr64BE; +pub type Aes128Ctr = ::ctr::Ctr64BE; /// AES-192 in CTR mode #[cfg_attr(docsrs, doc(cfg(feature = "ctr")))] @@ -14,4 +14,4 @@ pub type Aes192Ctr = ::ctr::Ctr64BE; /// AES-256 in CTR mode #[cfg_attr(docsrs, doc(cfg(feature = "ctr")))] -pub type Aes256Ctr = ::ctr::Ctr64BE; +pub type Aes256Ctr = ::ctr::Ctr64BE; diff --git a/services/shellchat/Cargo.toml b/services/shellchat/Cargo.toml index fbc59d1a1..21011bde6 100644 --- a/services/shellchat/Cargo.toml +++ b/services/shellchat/Cargo.toml @@ -76,7 +76,7 @@ utralib = {path = "../../utralib"} debugprint = [] spinortest = [] # for spinor testing. contra-indicated with PDDB, as it steals memory from the PDDB. benchmarks = [] # adds the benchmark routines. Left off normally to free up code and memory space. -default = [] # "debugprint" +default = ["benchmarks"] # "debugprint" [target.'cfg(any(windows,unix))'.dependencies] debug-here = "*"