From 792754a7e205d159576c7cb8ac4fd124879faae2 Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Thu, 20 Apr 2023 15:01:31 +0200 Subject: [PATCH] services/aes-test: use single lifetime for AesEcbTest Signed-off-by: Jean-Pierre De Jesus DIAZ --- services/aes-test/src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/services/aes-test/src/main.rs b/services/aes-test/src/main.rs index 47954b627..1ab2bd7b9 100644 --- a/services/aes-test/src/main.rs +++ b/services/aes-test/src/main.rs @@ -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,