From dda9dffca9bda905bc33d5995923277e861a80c2 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 28 Jun 2016 17:05:35 +0200 Subject: Clarify GPRS algorithm Add spec reference and set explicit values for enum representing ciphering algorithm for GPRS encryption. Change-Id: Ia9ee429b73a37d52599fce70778cfe87b767411c Related: OS#1582 --- include/osmocom/crypt/gprs_cipher.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include') 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 }; -- cgit v1.2.3