[PATCH] libosmocore[master]: Clarify GPRS ciphering direction

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/.

Max gerrit-no-reply at lists.osmocom.org
Mon Jun 27 14:21:03 UTC 2016


Review at  https://gerrit.osmocom.org/423

Clarify GPRS ciphering direction

Add spec reference and set explicit values for enum representing
direction parameter for GPRS encryption.

Change-Id: Iaf1b13da2e889d55cc9dd7516710104dba48c992
Related: OS#1582
---
M include/osmocom/crypt/gprs_cipher.h
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/23/423/1

diff --git a/include/osmocom/crypt/gprs_cipher.h b/include/osmocom/crypt/gprs_cipher.h
index d6edefa..3e9a17e 100644
--- a/include/osmocom/crypt/gprs_cipher.h
+++ b/include/osmocom/crypt/gprs_cipher.h
@@ -13,9 +13,10 @@
 	_GPRS_ALGO_NUM
 };
 
+/* 3GPP TS 04.64 Table A.1: */
 enum gprs_cipher_direction {
-	GPRS_CIPH_MS2SGSN,
-	GPRS_CIPH_SGSN2MS,
+	GPRS_CIPH_MS2SGSN = 0,
+	GPRS_CIPH_SGSN2MS = 1,
 };
 
 /* An implementation of a GPRS cipher */

-- 
To view, visit https://gerrit.osmocom.org/423
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf1b13da2e889d55cc9dd7516710104dba48c992
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list