This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged.
Change subject: Clarify GPRS algorithm
......................................................................
Clarify GPRS algorithm
Add spec reference and set explicit values for enum representing
ciphering algorithm for GPRS encryption.
Change-Id: Ia9ee429b73a37d52599fce70778cfe87b767411c
Related: OS#1582
---
M include/osmocom/crypt/gprs_cipher.h
1 file changed, 6 insertions(+), 5 deletions(-)
Approvals:
Harald Welte: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/include/osmocom/crypt/gprs_cipher.h b/include/osmocom/crypt/gprs_cipher.h
index 2639293..d242595 100644
--- a/include/osmocom/crypt/gprs_cipher.h
+++ b/include/osmocom/crypt/gprs_cipher.h
@@ -5,12 +5,13 @@
#define GSM0464_CIPH_MAX_BLOCK 1523
+/* 3GPP TS 24.008 § 10.5.5.3 */
enum gprs_ciph_algo {
- GPRS_ALGO_GEA0,
- GPRS_ALGO_GEA1,
- GPRS_ALGO_GEA2,
- GPRS_ALGO_GEA3,
- GPRS_ALGO_GEA4,
+ GPRS_ALGO_GEA0 = 0,
+ GPRS_ALGO_GEA1 = 1,
+ GPRS_ALGO_GEA2 = 2,
+ GPRS_ALGO_GEA3 = 3,
+ GPRS_ALGO_GEA4 = 4,
_GPRS_ALGO_NUM
};
--
To view, visit https://gerrit.osmocom.org/432
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia9ee429b73a37d52599fce70778cfe87b767411c
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder