Skip to content

Commit 55244b6

Browse files
authored
Bump cipher to v0.5.1 (#536)
1 parent b74e228 commit 55244b6

File tree

5 files changed

+50
-54
lines changed

5 files changed

+50
-54
lines changed

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rc5/src/lib.rs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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},
@@ -51,7 +50,7 @@ where
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>,
@@ -70,7 +69,7 @@ where
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>,

rc5/src/primitives.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use core::ops::{Add, BitXor, Mul};
22

33
use cipher::{
44
array::{Array, ArraySize},
5-
common::BlockSizes,
65
typenum::{Diff, Prod, Quot, Sum, U1, U2, U4, U8, U16},
76
};
87

@@ -20,7 +19,7 @@ pub type KeyAsWordsSize<W, B> = Quot<Diff<Sum<B, <W as Word>::Bytes>, U1>, <W as
2019
pub trait Word
2120
where
2221
Self: Default + Copy + From<u8> + Add<Output = Self> + Default + private::Sealed,
23-
BlockSize<Self>: BlockSizes,
22+
BlockSize<Self>: ArraySize,
2423
{
2524
type Bytes: ArraySize + Mul<U2>;
2625

0 commit comments

Comments
 (0)