diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-06-15 01:09:37 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2021-06-18 23:31:31 +0200 |
commit | 498e55a9a4a99aaea7e62b8a477a978e35a597f2 (patch) | |
tree | 20ed95d5562029a99f7d2d7ce7a8714147e78217 /include/osmocom | |
parent | 0256c891878be531c24aa0c62e7c56ef8d71ab65 (diff) |
implement A5/4 in Ciphering Mode procedure
Receive and store the Kc128 key from MSC, and use as key sent to BTS if
A5/4 is the chosen encryption algorithm.
(A5/4 in handover will follow in a separate patch)
Related: SYS#5324
Change-Id: I7c458c8a7350f34ff79531b3c891e1b367614469
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/bsc/gsm_data.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index 2a73f462a..1755b92d7 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -554,6 +554,8 @@ struct gsm_encr { uint8_t alg_id; uint8_t key_len; uint8_t key[MAX_A5_KEY_LEN]; + bool kc128_present; + uint8_t kc128[16]; }; #define LOGPLCHAN(lchan, ss, level, fmt, args...) \ |