From 33378c32c06d4722d1d522b42f1dc1b5c9943546 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 12 Jan 2022 15:30:03 +0100 Subject: [PATCH] gnb,rrc: fix key derivation in reestablishment --- srsgnb/src/stack/rrc/rrc_nr_security_context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsgnb/src/stack/rrc/rrc_nr_security_context.cc b/srsgnb/src/stack/rrc/rrc_nr_security_context.cc index eba5a4ff8..a23329dc4 100644 --- a/srsgnb/src/stack/rrc/rrc_nr_security_context.cc +++ b/srsgnb/src/stack/rrc/rrc_nr_security_context.cc @@ -188,11 +188,11 @@ void nr_security_context::generate_as_keys() void nr_security_context::regenerate_keys_handover(uint32_t new_pci, uint32_t new_dl_arfcn) { - logger.info("Regenerating KgNB with PCI=0x%02x, DL-ARFCN=%d", new_pci, new_dl_arfcn); + logger.info("Regenerating KgNB with PCI=0x%02x, SSB-ARFCN=%d", new_pci, new_dl_arfcn); logger.info(k_gnb, 32, "Old K_gNB (k_gnb)"); // Generate K_enb* uint8_t k_gnb_star[32]; - srsran::security_generate_k_enb_star(k_gnb, new_pci, new_dl_arfcn, k_gnb_star); + srsran::security_generate_k_gnb_star(k_gnb, new_pci, new_dl_arfcn, k_gnb_star); // K_enb becomes K_enb* memcpy(k_gnb, k_gnb_star, 32);