File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -448,15 +448,15 @@ fn get_48_bit_keys_from_array_of_28_bit_pairs() {
448
448
#[ test]
449
449
fn permutation_of_64bit_integer_gives_58_bit ( ) {
450
450
let message_64bit = 0x123456789abcdef ;
451
- let intial_permutation = 0xcc00ccfff0aaf0aa ;
451
+ let intial_permutation = 0xcc00ccfff0aaf0aa_u64 as i64 ;
452
452
assert_eq ! ( intial_permutation, initial_permutation_of_64bit_message( message_64bit) ) ;
453
453
}
454
454
455
455
456
456
#[ cfg( test) ]
457
457
#[ test]
458
458
fn splitting_key_of_64_bit_into_32_bit_pair ( ) {
459
- let key = 0xcc00ccfff0aaf0aa ;
459
+ let key = 0xcc00ccfff0aaf0aa_u64 as i64 ;
460
460
let left = 0xcc00ccffi64 ;
461
461
let right = 0xf0aaf0aai64 ;
462
462
assert_eq ! ( ( left, right) , split_key( key, 64 ) ) ;
@@ -569,6 +569,6 @@ fn final_pair_is_generated() {
569
569
fn final_permutation_is_85E813540F0AB405_from_43423234_and_A4CD995 ( ) {
570
570
let L16 = 0x43423234 ;
571
571
let R16 = 0xA4CD995 ;
572
- let permutation = 0x85E813540F0AB405 ;
572
+ let permutation = 0x85E813540F0AB405_u64 as i64 ;
573
573
assert_eq ! ( permutation, last_permutation_with_ip_table( ( L16 , R16 ) ) ) ;
574
574
}
You can’t perform that action at this time.
0 commit comments