Skip to content

Commit

Permalink
Use U12 for where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Jun 14, 2024
1 parent c5280f3 commit 3222d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkcs5/src/pbes2/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -58,7 +58,7 @@ fn gcm_encrypt<'a, C>(
) -> Result<&'a [u8]>
where
C: BlockCipher + BlockSizeUser<BlockSize = U16> + GcmKeyInit + BlockCipherEncrypt,
aes_gcm::AesGcm<C, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>: GcmKeyInit,
aes_gcm::AesGcm<C, U12>: GcmKeyInit,
{
const TAG_SIZE: usize = 16;
const NONCE_SIZE: usize = 12;
Expand All @@ -85,7 +85,7 @@ fn gcm_decrypt<'a, C>(
) -> Result<&'a [u8]>
where
C: BlockCipher + BlockSizeUser<BlockSize = U16> + GcmKeyInit + BlockCipherEncrypt,
aes_gcm::AesGcm<C, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>: GcmKeyInit,
aes_gcm::AesGcm<C, U12>: GcmKeyInit,
{
const TAG_SIZE: usize = 16;
const NONCE_SIZE: usize = 12;
Expand Down

0 comments on commit 3222d46

Please sign in to comment.