Commit 242b2b13 authored by gauthier's avatar gauthier

clean commented code

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7485 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 1b03104f
......@@ -65,11 +65,6 @@ void f1 ( const uint8_t const opc[16], const uint8_t const k[16], const uint8_t
uint8_t rijndaelInput[16];
uint8_t i;
RijndaelKeySchedule( k );
/*
if (hss_config.valid_op > 0) {
SetOP(hss_config.operator_key);
ComputeOPc( opc );
}*/
for (i=0; i<16; i++)
rijndaelInput[i] = _rand[i] ^ opc[i];
......@@ -123,11 +118,6 @@ void f2345 ( const uint8_t const opc[16], const uint8_t const k[16], const uint8
uint8_t i;
RijndaelKeySchedule( k );
/*if (hss_config.valid_op > 0) {
SetOP(hss_config.operator_key);
ComputeOPc( opc );
}*/
for (i=0; i<16; i++)
rijndaelInput[i] = _rand[i] ^ opc[i];
......@@ -203,14 +193,6 @@ void f1star( const uint8_t const opc[16], const uint8_t const k[16], const uint8
uint8_t rijndaelInput[16];
uint8_t i;
RijndaelKeySchedule( k );
/*if (hss_config.valid_opc == 0) {
SetOP(hss_config.operator_key);
ComputeOPc( opc );
} else {
printf("Using opc: %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\n",
opc[0],opc[1],opc[2],opc[3],opc[4],opc[5],opc[6],opc[7],
opc[8],opc[9],opc[10],opc[11],opc[12],opc[13],opc[14],opc[15] );
}*/
for (i=0; i<16; i++)
rijndaelInput[i] = _rand[i] ^ opc[i];
......@@ -264,14 +246,6 @@ void f5star( const uint8_t const opc[16], const uint8_t const k[16], const uint8
uint8_t i;
RijndaelKeySchedule( k );
/*if (hss_config.valid_opc == 0) {
SetOP(hss_config.operator_key);
ComputeOPc(opc);
} else {
printf("Using OPc: %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\n",
opc[0],opc[1],opc[2],opc[3],opc[4],opc[5],opc[6],opc[7],
opc[8],opc[9],opc[10],opc[11],opc[12],opc[13],opc[14],opc[15]);
}*/
for (i=0; i<16; i++)
rijndaelInput[i] = _rand[i] ^ opc[i];
......
......@@ -138,8 +138,7 @@ int generate_vector(const uint8_t const opc[16], uint64_t imsi, uint8_t key[16],
* - KASME
*/
//uint8_t amf[] = { 0x80, 0x00 };
uint8_t amf[] = { 0x90, 0x01 };
uint8_t amf[] = { 0x80, 0x00 };
uint8_t mac_a[8];
uint8_t ck[16];
uint8_t ik[16];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment