File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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() {
448448#[ test]
449449fn permutation_of_64bit_integer_gives_58_bit ( ) {
450450 let message_64bit = 0x123456789abcdef ;
451- let intial_permutation = 0xcc00ccfff0aaf0aa ;
451+ let intial_permutation = 0xcc00ccfff0aaf0aa_u64 as i64 ;
452452 assert_eq ! ( intial_permutation, initial_permutation_of_64bit_message( message_64bit) ) ;
453453}
454454
455455
456456#[ cfg( test) ]
457457#[ test]
458458fn splitting_key_of_64_bit_into_32_bit_pair ( ) {
459- let key = 0xcc00ccfff0aaf0aa ;
459+ let key = 0xcc00ccfff0aaf0aa_u64 as i64 ;
460460 let left = 0xcc00ccffi64 ;
461461 let right = 0xf0aaf0aai64 ;
462462 assert_eq ! ( ( left, right) , split_key( key, 64 ) ) ;
@@ -569,6 +569,6 @@ fn final_pair_is_generated() {
569569fn final_permutation_is_85E813540F0AB405_from_43423234_and_A4CD995 ( ) {
570570 let L16 = 0x43423234 ;
571571 let R16 = 0xA4CD995 ;
572- let permutation = 0x85E813540F0AB405 ;
572+ let permutation = 0x85E813540F0AB405_u64 as i64 ;
573573 assert_eq ! ( permutation, last_permutation_with_ip_table( ( L16 , R16 ) ) ) ;
574574}
You can’t perform that action at this time.
0 commit comments