fix dangling reference in AES ctr mode soft implementation

This commit is contained in:
bunnie 2022-03-07 13:28:10 +08:00
parent 4cfd835c0c
commit dd511432b4
2 changed files with 4 additions and 4 deletions

View file

@ -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<Aes128>;
pub type Aes128Ctr = ::ctr::Ctr64BE<Aes128Soft>;
/// AES-192 in CTR mode
#[cfg_attr(docsrs, doc(cfg(feature = "ctr")))]
@ -14,4 +14,4 @@ pub type Aes192Ctr = ::ctr::Ctr64BE<Aes192>;
/// AES-256 in CTR mode
#[cfg_attr(docsrs, doc(cfg(feature = "ctr")))]
pub type Aes256Ctr = ::ctr::Ctr64BE<Aes256>;
pub type Aes256Ctr = ::ctr::Ctr64BE<Aes256Soft>;

View file

@ -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 = "*"