@@ -2,7 +2,8 @@ use cipher::{
22 AlgorithmName , Array , Block , BlockCipherDecrypt , BlockCipherEncBackend , BlockCipherEncClosure ,
33 BlockCipherEncrypt , BlockModeDecBackend , BlockModeDecClosure , BlockModeDecrypt , BlockSizeUser ,
44 InnerIvInit , Iv , IvSizeUser , IvState , ParBlocks , ParBlocksSizeUser ,
5- common:: { BlockSizes , InnerUser } ,
5+ array:: ArraySize ,
6+ common:: InnerUser ,
67 inout:: { InOut , InOutBuf , NotEqualError } ,
78 typenum:: Unsigned ,
89} ;
@@ -151,7 +152,7 @@ where
151152 /// create respective [`CbcDecryptBackend`] based on it.
152153 struct Closure < ' a , BS , BC >
153154 where
154- BS : BlockSizes ,
155+ BS : ArraySize ,
155156 BC : BlockModeDecClosure < BlockSize = BS > ,
156157 {
157158 iv : & ' a mut Array < u8 , BS > ,
@@ -160,15 +161,15 @@ where
160161
161162 impl < BS , BC > BlockSizeUser for Closure < ' _ , BS , BC >
162163 where
163- BS : BlockSizes ,
164+ BS : ArraySize ,
164165 BC : BlockModeDecClosure < BlockSize = BS > ,
165166 {
166167 type BlockSize = BS ;
167168 }
168169
169170 impl < BS , BC > BlockCipherEncClosure for Closure < ' _ , BS , BC >
170171 where
171- BS : BlockSizes ,
172+ BS : ArraySize ,
172173 BC : BlockModeDecClosure < BlockSize = BS > ,
173174 {
174175 #[ inline( always) ]
@@ -289,7 +290,7 @@ impl<C: BlockCipherEncrypt + ZeroizeOnDrop> ZeroizeOnDrop for Decryptor<C> {}
289290
290291struct CbcDecryptBackend < ' a , BS , BK >
291292where
292- BS : BlockSizes ,
293+ BS : ArraySize ,
293294 BK : BlockCipherEncBackend < BlockSize = BS > ,
294295{
295296 iv : & ' a mut Array < u8 , BS > ,
@@ -298,23 +299,23 @@ where
298299
299300impl < BS , BK > BlockSizeUser for CbcDecryptBackend < ' _ , BS , BK >
300301where
301- BS : BlockSizes ,
302+ BS : ArraySize ,
302303 BK : BlockCipherEncBackend < BlockSize = BS > ,
303304{
304305 type BlockSize = BS ;
305306}
306307
307308impl < BS , BK > ParBlocksSizeUser for CbcDecryptBackend < ' _ , BS , BK >
308309where
309- BS : BlockSizes ,
310+ BS : ArraySize ,
310311 BK : BlockCipherEncBackend < BlockSize = BS > ,
311312{
312313 type ParBlocksSize = BK :: ParBlocksSize ;
313314}
314315
315316impl < BS , BK > BlockModeDecBackend for CbcDecryptBackend < ' _ , BS , BK >
316317where
317- BS : BlockSizes ,
318+ BS : ArraySize ,
318319 BK : BlockCipherEncBackend < BlockSize = BS > ,
319320{
320321 #[ inline( always) ]
0 commit comments