From 3222d462bed88df1394af1d99d9bc6274159571d Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 14 Jun 2024 11:28:33 -0400 Subject: [PATCH] Use U12 for where clause --- pkcs5/src/pbes2/encryption.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkcs5/src/pbes2/encryption.rs b/pkcs5/src/pbes2/encryption.rs index d15b51f30..f5925a67f 100644 --- a/pkcs5/src/pbes2/encryption.rs +++ b/pkcs5/src/pbes2/encryption.rs @@ -12,7 +12,7 @@ use pbkdf2::{ digest::{ block_buffer::Eager, core_api::{BlockSizeUser, BufferKindUser, FixedOutputCore, UpdateCore}, - typenum::{IsLess, Le, NonZero, UInt, UTerm, B0, B1, U12, U16, U256}, + typenum::{IsLess, Le, NonZero, U12, U16, U256}, HashMarker, }, EagerHash, @@ -58,7 +58,7 @@ fn gcm_encrypt<'a, C>( ) -> Result<&'a [u8]> where C: BlockCipher + BlockSizeUser + GcmKeyInit + BlockCipherEncrypt, - aes_gcm::AesGcm, B1>, B0>, B0>>: GcmKeyInit, + aes_gcm::AesGcm: GcmKeyInit, { const TAG_SIZE: usize = 16; const NONCE_SIZE: usize = 12; @@ -85,7 +85,7 @@ fn gcm_decrypt<'a, C>( ) -> Result<&'a [u8]> where C: BlockCipher + BlockSizeUser + GcmKeyInit + BlockCipherEncrypt, - aes_gcm::AesGcm, B1>, B0>, B0>>: GcmKeyInit, + aes_gcm::AesGcm: GcmKeyInit, { const TAG_SIZE: usize = 16; const NONCE_SIZE: usize = 12;