From 5fe329971a5b5f38a3204fc06ade2eb5238dc5c0 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Mon, 4 Jun 2018 18:02:25 +0200 Subject: [PATCH] Do not print OPc debug --- lib/src/common/liblte_security.cc | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/lib/src/common/liblte_security.cc b/lib/src/common/liblte_security.cc index 020f019c9..d8f76bf2c 100644 --- a/lib/src/common/liblte_security.cc +++ b/lib/src/common/liblte_security.cc @@ -1124,14 +1124,11 @@ LIBLTE_ERROR_ENUM liblte_security_milenage_f1(uint8 *k, rijndael_key_schedule(k, &round_keys); // Compute OPc - printf("OPc 0x: "); for(i=0;i<16;i++) - { + { op_c[i] = op[i]; - printf("%02x", op_c[i]); - } - printf("\n"); - + } + //compute_OPc(&round_keys, op, op_c); // Compute temp @@ -1215,14 +1212,11 @@ LIBLTE_ERROR_ENUM liblte_security_milenage_f1_star(uint8 *k, // Initialize the round keys rijndael_key_schedule(k, &round_keys); - printf("OPc 0x: "); for(i=0;i<16;i++) { op_c[i] = op[i]; - printf("%02x", op_c[i]); } - printf("\n"); - + // Compute OPc //compute_OPc(&round_keys, op, op_c); @@ -1310,13 +1304,10 @@ LIBLTE_ERROR_ENUM liblte_security_milenage_f2345(uint8 *k, // Compute OPc //compute_OPc(&round_keys, op, op_c); - printf("OPc 0x: "); for(i=0;i<16;i++) { op_c[i] = op[i]; - printf("%02x", op_c[i]); } - printf("\n"); // Compute temp for(i=0; i<16; i++) { @@ -1421,14 +1412,11 @@ LIBLTE_ERROR_ENUM liblte_security_milenage_f5_star(uint8 *k, // Compute OPc //compute_OPc(&round_keys, op, op_c); - printf("OPc 0x: "); for(i=0;i<16;i++) - { + { op_c[i] = op[i]; - printf("%02x", op_c[i]); - } - printf("\n"); - + } + // Compute temp for(i=0; i<16; i++) {