mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
services/aes-test: use single lifetime for AesEcbTest
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
This commit is contained in:
parent
1dbc8700a1
commit
792754a7e2
1 changed files with 6 additions and 6 deletions
|
|
@ -8,15 +8,15 @@ mod low_level_tests;
|
|||
|
||||
use hex_literal::hex;
|
||||
|
||||
struct AesEcbTest<'a, 'b, 'c> {
|
||||
struct AesEcbTest<'a> {
|
||||
key: &'a [u8],
|
||||
plaintext: &'b [u8],
|
||||
ciphertext: &'c [u8],
|
||||
plaintext: &'a [u8],
|
||||
ciphertext: &'a [u8],
|
||||
}
|
||||
|
||||
impl<'a, 'b, 'c> AesEcbTest<'a, 'b, 'c> {
|
||||
pub fn new(key: &'a [u8], plaintext: &'b [u8], ciphertext: &'c [u8]) -> Self {
|
||||
AesEcbTest {
|
||||
impl<'a> AesEcbTest<'a> {
|
||||
pub fn new(key: &'a [u8], plaintext: &'a [u8], ciphertext: &'a [u8]) -> Self {
|
||||
Self {
|
||||
key,
|
||||
plaintext,
|
||||
ciphertext,
|
||||
|
|
|
|||
Loading…
Reference in a new issue