@@ -90,38 +90,38 @@ AREA calculate0(const unsigned char *UID,const int cardType){
9090 return temp ;
9191}
9292AREA calculate8 (const unsigned char * UID ,int num ,int ifHalf ,unsigned char times ) {
93- // sorry this line can't be made public
94- // sorry this line can't be made public
95- // sorry this line can't be made public
96- // sorry this line can't be made public
97- // sorry this line can't be made public
98- // sorry this line can't be made public
99- // sorry this line can't be made public
100- // sorry this line can't be made public
101- // sorry this line can't be made public
102- // sorry this line can't be made public
103- // sorry this line can't be made public
93+ unsigned char c /* sorry this line can't be made public*/ ;
94+ unsigned char b /* sorry this line can't be made public*/ ;
95+ unsigned char a /* sorry this line can't be made public*/ ;
96+ unsigned char d /* sorry this line can't be made public*/ ;
97+ unsigned char e /* sorry this line can't be made public*/ ;
98+ unsigned char A /* sorry this line can't be made public*/ ;
99+ unsigned char B /* sorry this line can't be made public*/ ;
100+ unsigned char C /* sorry this line can't be made public*/ ;
101+ unsigned char D /* sorry this line can't be made public*/ ;
102+ unsigned char E /* sorry this line can't be made public*/ ;
103+ unsigned char F /* sorry this line can't be made public*/ ;
104104 unsigned char keys [6 ]= {A ,B ,C ,D ,E ,F };
105105 BLOCK water_data = {0 },check = {0 },key = {0 };
106106 AREA ret_area ;
107- // sorry this line can't be made public
108- // sorry this line can't be made public
109- // sorry this line can't be made public
110- // sorry this line can't be made public
107+ check . data [ 0 ] /* sorry this line can't be made public*/ ;
108+ check . data [ 1 ] /* sorry this line can't be made public*/ ;
109+ check . data [ 2 ] /* sorry this line can't be made public*/ ;
110+ check . data [ 3 ] /* sorry this line can't be made public*/ ;
111111 check .data [15 ]= e ;
112112 water_data .data [0 ]= a ;
113113 water_data .data [1 ]= b ;
114114 water_data .data [5 ]= c ;
115- //sorry this line can't be made public
115+ water_data . data [ 12 ] = times ;
116116 water_data .data [15 ]= d ;
117117 key .data [6 ]= 0xff ;
118118 key .data [7 ]= 0x07 ;
119119 key .data [8 ]= 0x80 ;
120120 key .data [9 ]= 0x69 ;
121+ for (int i = 0 ; i < 6 ; ++ i ) {key .data [i ] = keys [i ];key .data [i + 10 ] = keys [i ];}
122+ //sorry this line can't be made public
121123 //sorry this line can't be made public
122- memcpy (& (ret_area .blocks [0 ]), & check , sizeof (BLOCK ));
123124 //sorry this line can't be made public
124125 //sorry this line can't be made public
125- memcpy (& (ret_area .blocks [3 ]), & key , sizeof (BLOCK ));
126126 return ret_area ;
127127};
0 commit comments