diff options
author | Max <msuraev@sysmocom.de> | 2018-12-19 20:12:19 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-12-20 09:51:02 +0000 |
commit | af25c37f903be0f30a0a6a4663a2892a84c79740 (patch) | |
tree | e0ce918cc2a5cbc832edb7e829df398cdc58941f /src | |
parent | 6cb833608fa39943c1ce9fe046992922e09f4266 (diff) |
Use define for key buffers
Add corresponding spec. references and comments where appropriate.
Change-Id: If5e2aad86eaecd8eada667b3488ba415d81c6312
Diffstat (limited to 'src')
-rw-r--r-- | src/gsm/auth_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/auth_core.c b/src/gsm/auth_core.c index f171ed49..9e750a01 100644 --- a/src/gsm/auth_core.c +++ b/src/gsm/auth_core.c @@ -98,7 +98,7 @@ int osmo_auth_supported(enum osmo_auth_algo algo) return 0; } -/* C5 function to derive UMTS IK from GSM Kc */ +/* 3GPP TS 33.102 §6.8.2.3 C5 function to derive UMTS IK from GSM Kc */ static inline void c5_function(uint8_t *ik, const uint8_t *kc) { unsigned int i; @@ -110,7 +110,7 @@ static inline void c5_function(uint8_t *ik, const uint8_t *kc) ik[i] = ik[i-12]; } -/* C4 function to derive UMTS CK from GSM Kc */ +/* 3GPP TS 33.102 §6.8.2.3 C4 function to derive UMTS CK from GSM Kc */ void osmo_c4(uint8_t *ck, const uint8_t *kc) { memcpy(ck, kc, 8); |