summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-06-28 17:05:35 +0200
committerHarald Welte <laforge@gnumonks.org>2016-06-29 16:34:14 +0000
commitdda9dffca9bda905bc33d5995923277e861a80c2 (patch)
treec56f15fe99d3dd9c07aea9ffd38249d7b2285301 /include/osmocom
parentc57e5daf224476c20d34653fdb11d67ed7da9fed (diff)
Clarify GPRS algorithm
Add spec reference and set explicit values for enum representing ciphering algorithm for GPRS encryption. Change-Id: Ia9ee429b73a37d52599fce70778cfe87b767411c Related: OS#1582
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/crypt/gprs_cipher.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/osmocom/crypt/gprs_cipher.h b/include/osmocom/crypt/gprs_cipher.h
index 2639293c..d2425955 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
};