From 4ac5448ad7f13a45edbf4dcc0dca747196aac177 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 13 Sep 2019 15:28:58 +0200 Subject: [PATCH] fix formatting in NAS --- srsepc/src/mme/nas.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/srsepc/src/mme/nas.cc b/srsepc/src/mme/nas.cc index 31d3f90e6..03942d934 100644 --- a/srsepc/src/mme/nas.cc +++ b/srsepc/src/mme/nas.cc @@ -1720,16 +1720,16 @@ void nas::cipher_decrypt(srslte::byte_buffer_t* pdu) m_nas_log->debug_hex(tmp_pdu.msg, pdu->N_bytes, "Decrypted"); memcpy(&pdu->msg[6], &tmp_pdu.msg[6], pdu->N_bytes - 6); break; - case srslte::CIPHERING_ALGORITHM_ID_128_EEA3: + case srslte::CIPHERING_ALGORITHM_ID_128_EEA3: srslte::security_128_eea3(&m_sec_ctx.k_nas_enc[16], - pdu->msg[5], - 0, // Bearer always 0 for NAS - srslte::SECURITY_DIRECTION_UPLINK, - &pdu->msg[6], - pdu->N_bytes-6, - &tmp_pdu.msg[6]); + pdu->msg[5], + 0, // Bearer always 0 for NAS + srslte::SECURITY_DIRECTION_UPLINK, + &pdu->msg[6], + pdu->N_bytes - 6, + &tmp_pdu.msg[6]); m_nas_log->debug_hex(tmp_pdu.msg, pdu->N_bytes, "Decrypted"); - memcpy(&pdu->msg[6], &tmp_pdu.msg[6], pdu->N_bytes-6); + memcpy(&pdu->msg[6], &tmp_pdu.msg[6], pdu->N_bytes - 6); break; default: m_nas_log->error("Ciphering algorithms not known\n");