@@ -23,7 +23,6 @@ use cipher::{
2323 BlockCipherEncBackend , BlockCipherEncClosure , BlockCipherEncrypt , BlockSizeUser , KeyInit ,
2424 KeySizeUser , ParBlocksSizeUser ,
2525 array:: ArraySize ,
26- common:: BlockSizes ,
2726 consts:: { U1 , U2 , U256 } ,
2827 inout:: InOut ,
2928 typenum:: { Diff , IsLess , Le , NonZero , Sum , Unsigned } ,
5150 W : Word ,
5251 // Block size
5352 W :: Bytes : Mul < U2 > ,
54- BlockSize < W > : BlockSizes ,
53+ BlockSize < W > : ArraySize ,
5554 // Rounds range
5655 R : Unsigned ,
5756 R : IsLess < U256 > ,
7069 W : Word ,
7170 // Block size
7271 W :: Bytes : Mul < U2 > ,
73- BlockSize < W > : BlockSizes ,
72+ BlockSize < W > : ArraySize ,
7473 // Rounds range
7574 R : Unsigned ,
7675 R : IsLess < U256 > ,
@@ -156,7 +155,7 @@ where
156155 W : Word ,
157156 // Block size
158157 W :: Bytes : Mul < U2 > ,
159- BlockSize < W > : BlockSizes ,
158+ BlockSize < W > : ArraySize ,
160159 // Rounds range
161160 R : Unsigned ,
162161 R : IsLess < U256 > ,
@@ -187,7 +186,7 @@ where
187186 W : Word ,
188187 // Block size
189188 W :: Bytes : Mul < U2 > ,
190- BlockSize < W > : BlockSizes ,
189+ BlockSize < W > : ArraySize ,
191190 // Rounds range
192191 R : Unsigned ,
193192 R : IsLess < U256 > ,
@@ -219,7 +218,7 @@ where
219218 W : Word ,
220219 // Block size
221220 W :: Bytes : Mul < U2 > ,
222- BlockSize < W > : BlockSizes ,
221+ BlockSize < W > : ArraySize ,
223222 // Rounds range
224223 R : Unsigned ,
225224 R : IsLess < U256 > ,
@@ -238,7 +237,7 @@ where
238237 W : Word ,
239238 // Block size
240239 W :: Bytes : Mul < U2 > ,
241- BlockSize < W > : BlockSizes ,
240+ BlockSize < W > : ArraySize ,
242241 // Rounds range
243242 R : Unsigned ,
244243 R : IsLess < U256 > ,
@@ -256,7 +255,7 @@ where
256255 W : Word ,
257256 // Block size
258257 W :: Bytes : Mul < U2 > ,
259- BlockSize < W > : BlockSizes ,
258+ BlockSize < W > : ArraySize ,
260259 // Rounds range
261260 R : Unsigned ,
262261 R : IsLess < U256 > ,
@@ -274,7 +273,7 @@ where
274273 W : Word ,
275274 // Block size
276275 W :: Bytes : Mul < U2 > ,
277- BlockSize < W > : BlockSizes ,
276+ BlockSize < W > : ArraySize ,
278277 // Rounds range
279278 R : Unsigned ,
280279 R : IsLess < U256 > ,
@@ -303,7 +302,7 @@ where
303302 W : Word ,
304303 // Block size
305304 W :: Bytes : Mul < U2 > ,
306- BlockSize < W > : BlockSizes ,
305+ BlockSize < W > : ArraySize ,
307306 // Rounds range
308307 R : Unsigned ,
309308 R : IsLess < U256 > ,
@@ -344,7 +343,7 @@ where
344343 W : Word ,
345344 // Block size
346345 W :: Bytes : Mul < U2 > ,
347- BlockSize < W > : BlockSizes ,
346+ BlockSize < W > : ArraySize ,
348347 // Rounds range
349348 R : Unsigned ,
350349 R : IsLess < U256 > ,
@@ -373,7 +372,7 @@ where
373372 W : Word ,
374373 // Block size
375374 W :: Bytes : Mul < U2 > ,
376- BlockSize < W > : BlockSizes ,
375+ BlockSize < W > : ArraySize ,
377376 // Rounds range
378377 R : Unsigned ,
379378 R : IsLess < U256 > ,
@@ -414,7 +413,7 @@ where
414413 W : Word ,
415414 // Block size
416415 W :: Bytes : Mul < U2 > ,
417- BlockSize < W > : BlockSizes ,
416+ BlockSize < W > : ArraySize ,
418417 // Rounds range
419418 R : Unsigned ,
420419 R : IsLess < U256 > ,
@@ -440,7 +439,7 @@ where
440439 W : Word ,
441440 // Block size
442441 W :: Bytes : Mul < U2 > ,
443- BlockSize < W > : BlockSizes ,
442+ BlockSize < W > : ArraySize ,
444443 // Rounds range
445444 R : Unsigned ,
446445 R : IsLess < U256 > ,
@@ -467,7 +466,7 @@ where
467466 W : Word ,
468467 // Block size
469468 W :: Bytes : Mul < U2 > ,
470- BlockSize < W > : BlockSizes ,
469+ BlockSize < W > : ArraySize ,
471470 // Rounds range
472471 R : Unsigned ,
473472 R : IsLess < U256 > ,
@@ -484,7 +483,7 @@ where
484483 W : Word ,
485484 // Block size
486485 W :: Bytes : Mul < U2 > ,
487- BlockSize < W > : BlockSizes ,
486+ BlockSize < W > : ArraySize ,
488487 // Rounds range
489488 R : Unsigned ,
490489 R : IsLess < U256 > ,
0 commit comments