mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
fix dangling reference in AES ctr mode soft implementation
This commit is contained in:
parent
4cfd835c0c
commit
dd511432b4
2 changed files with 4 additions and 4 deletions
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
// TODO(tarcieri): support generic CTR API
|
// TODO(tarcieri): support generic CTR API
|
||||||
|
|
||||||
use super::{Aes128, Aes192, Aes256};
|
use super::{Aes128Soft, Aes192, Aes256Soft};
|
||||||
|
|
||||||
/// AES-128 in CTR mode
|
/// AES-128 in CTR mode
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "ctr")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "ctr")))]
|
||||||
pub type Aes128Ctr = ::ctr::Ctr64BE<Aes128>;
|
pub type Aes128Ctr = ::ctr::Ctr64BE<Aes128Soft>;
|
||||||
|
|
||||||
/// AES-192 in CTR mode
|
/// AES-192 in CTR mode
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "ctr")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "ctr")))]
|
||||||
|
|
@ -14,4 +14,4 @@ pub type Aes192Ctr = ::ctr::Ctr64BE<Aes192>;
|
||||||
|
|
||||||
/// AES-256 in CTR mode
|
/// AES-256 in CTR mode
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "ctr")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "ctr")))]
|
||||||
pub type Aes256Ctr = ::ctr::Ctr64BE<Aes256>;
|
pub type Aes256Ctr = ::ctr::Ctr64BE<Aes256Soft>;
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ utralib = {path = "../../utralib"}
|
||||||
debugprint = []
|
debugprint = []
|
||||||
spinortest = [] # for spinor testing. contra-indicated with PDDB, as it steals memory from the PDDB.
|
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.
|
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]
|
[target.'cfg(any(windows,unix))'.dependencies]
|
||||||
debug-here = "*"
|
debug-here = "*"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue