diff --git a/openair-cn/OPENAIRHSS/auc/fx.c b/openair-cn/OPENAIRHSS/auc/fx.c index 446599a86d7a8f881488af17ae2c8e9b72551e84..31d8d05b224f28d410ee25f0c57c183eed3e301f 100644 --- a/openair-cn/OPENAIRHSS/auc/fx.c +++ b/openair-cn/OPENAIRHSS/auc/fx.c @@ -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]; diff --git a/openair-cn/OPENAIRHSS/auc/kdf.c b/openair-cn/OPENAIRHSS/auc/kdf.c index 8c83c9665a5e0eb84bb4779ced362044cd7b54a2..a806513cbc43a3c8e1d9b9d271d9494261e52d6a 100644 --- a/openair-cn/OPENAIRHSS/auc/kdf.c +++ b/openair-cn/OPENAIRHSS/auc/kdf.c @@ -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];