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,