services/aes-test: use single lifetime for AesEcbTest

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
This commit is contained in:
Jean-Pierre De Jesus DIAZ 2023-04-20 15:01:31 +02:00
parent 1dbc8700a1
commit 792754a7e2
No known key found for this signature in database
GPG key ID: 6279AEC20A9524EC

View file

@ -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,