mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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;
|
use hex_literal::hex;
|
||||||
|
|
||||||
struct AesEcbTest<'a, 'b, 'c> {
|
struct AesEcbTest<'a> {
|
||||||
key: &'a [u8],
|
key: &'a [u8],
|
||||||
plaintext: &'b [u8],
|
plaintext: &'a [u8],
|
||||||
ciphertext: &'c [u8],
|
ciphertext: &'a [u8],
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'b, 'c> AesEcbTest<'a, 'b, 'c> {
|
impl<'a> AesEcbTest<'a> {
|
||||||
pub fn new(key: &'a [u8], plaintext: &'b [u8], ciphertext: &'c [u8]) -> Self {
|
pub fn new(key: &'a [u8], plaintext: &'a [u8], ciphertext: &'a [u8]) -> Self {
|
||||||
AesEcbTest {
|
Self {
|
||||||
key,
|
key,
|
||||||
plaintext,
|
plaintext,
|
||||||
ciphertext,
|
ciphertext,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue