summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-08-26 22:38:08 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-29 12:46:46 +0000
commit95500c88b47c228b00ec89b8ffff405ce630c83f (patch)
treea1ed402c5821e493fc38b246f93f23e53763270d /include/osmocom
parente6e6446edf24c19c94d0774f81dc78ea0bc52f79 (diff)
cosmetic: umts aka: tweak comments for sqn and ind
Clearly indicate that 'sqn' is an in *and* out-parameter. Clarify the effect of 'ind'. Change-Id: Ia40cd4ddf35f4fbe895b45b8ea59378f5ce9eb1f
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/crypt/auth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/crypt/auth.h b/include/osmocom/crypt/auth.h
index 2f88a3a4..059e734c 100644
--- a/include/osmocom/crypt/auth.h
+++ b/include/osmocom/crypt/auth.h
@@ -35,10 +35,10 @@ struct osmo_sub_auth_data {
uint8_t opc[16]; /*!< operator invariant value */
uint8_t k[16]; /*!< secret key of the subscriber */
uint8_t amf[2];
- uint64_t sqn; /*!< sequence number */
+ uint64_t sqn; /*!< sequence number (in: prev sqn; out: used sqn) */
int opc_is_op; /*!< is the OPC field OPC (0) or OP (1) ? */
unsigned int ind_bitlen; /*!< nr of bits not in SEQ, only SQN */
- unsigned int ind; /*!< SQN slot, i.e. (SEQ << ind_bitlen) + ind */
+ unsigned int ind; /*!< which IND slot to use an SQN from */
} umts;
struct {
uint8_t ki[16]; /*!< secret key */