libosmocore/src/gsm
Neels Hofmeyr bb6f7b7bec osmo_auth_gen_vec: UMTS auth: fix SQN as SEQ || IND
So far we incremented SQN by 1, which doesn't match the procedures described in
3GPP TS 33.102. An IND (index) denotes a non-significant part of SQN, and the
significant SEQ part needs to be incremented.

In OsmoHLR we furthermore want to use the "exception" suggested in annex C.3.4,
so that each HLR's client has a fixed IND index. In other words, we will not
assign IND cyclically, but keep IND unchanged per auth vector consumer.

Add 'ind_bitlen' and 'ind' to the osmo_sub_auth_data.u.umts structure and
increment SQN accordingly.

Add a comment explaining the details.

Because 'ind_bitlen' is still passed as zero, the milenage_test does not change
its behavior, which is a feature I want to clearly show in this patch. The test
will be expanded for the newly implemented SQN scheme in a subsequent patch.

Adjust osmo-auc-gen.c to still show the right SQN and SQN.MS -- because it is
passing ind_bitlen == 0, osmo-auc-gen can rely on single increments and know
SQN.MS is sqn - 1. Note that osmo-auc-gen_test output remains unchanged.

Related: OS#1968
Change-Id: Ibc97e1736a797ffcbf8c1f7d41c5c4518f4e41bf
2017-03-15 12:46:08 +00:00
..
milenage milenage/aes: Address undefined behavior on bitshift 2016-04-24 20:57:30 +02:00
Makefile.am utils/conv_gen.py: improve application flexibility 2017-02-09 06:39:58 +00:00
a5.c Make C4 function globally available 2016-06-29 16:32:55 +00:00
abis_nm.c fix various compiler warnings (on FreeBSD-11.0) 2017-02-08 16:49:14 +01:00
apn.c gsm: Add APN conversion functions 2016-01-15 14:46:19 +01:00
auth_comp128v1.c Deprecate comp128 2016-04-22 15:10:55 +02:00
auth_comp128v23.c Refactor COMP128v23 implementation and add test suit 2013-12-07 18:10:38 +01:00
auth_core.c fix osmo_auth_gen_vec_auts: copy rand to auth vector 2017-02-22 03:12:51 +01:00
auth_milenage.c osmo_auth_gen_vec: UMTS auth: fix SQN as SEQ || IND 2017-03-15 12:46:08 +00:00
comp128.c Deprecate comp128 2016-04-22 15:10:55 +02:00
comp128v23.c Refactor COMP128v23 implementation and add test suit 2013-12-07 18:10:38 +01:00
gan.c gan: Mark gan_pdisc_vals[] as public / non-static symbol 2016-11-11 14:49:14 +00:00
gea.c Add GEA3 & GEA4 ciphers 2016-07-11 19:15:24 +00:00
gprs_cipher_core.c gprs_cipher_core: Use typecase to avoid sanitizer error 2017-01-06 10:03:30 +00:00
gprs_gea.c Add GEA3 & GEA4 ciphers 2016-07-11 19:15:24 +00:00
gprs_rlc.c egprs: Add CPS tables from TS 04.60 2016-07-25 18:33:26 +00:00
gsm48.c gsm0408: Completing GSM 04.08 RR message types 2016-10-27 13:36:42 +02:00
gsm48_ie.c gsm/gsm48ie: Fix range 256 W[i] decoding 2014-01-13 15:15:11 +01:00
gsm0341.c fixup 2014-12-30 00:43:32 +01:00
gsm0411_smc.c Change license of gsm0411_smc/smr to GPLv2+ 2014-10-26 20:50:31 +01:00
gsm0411_smr.c Change license of gsm0411_smc/smr to GPLv2+ 2014-10-26 20:50:31 +01:00
gsm0411_utils.c Fix compilation warnings: missing includes: gsm0411_utils.c, lapd_core.c, oap_test.c 2017-01-13 09:36:25 +00:00
gsm0480.c gsm0480: add gsm0480_create_ussd_notify() and *_release_complete() 2016-12-01 15:54:35 +00:00
gsm0502.c import gsm0502_calc_paging_group() from openbsc 2011-06-26 14:47:16 +02:00
gsm0808.c fix: gsm0808.c: unterminated value_string array gsm0808_bssap_names 2017-03-02 01:48:10 +00:00
gsm_04_08_gprs.c Fix erroneously AGPL licensed file in libosmocore. 2016-12-22 14:58:58 +01:00
gsm_utils.c Add function to make Uplink Measurement 2016-05-17 16:10:31 +00:00
gsup.c gsup decode: fix expectation of AUTS length, should be 14 2017-02-21 16:19:40 +01:00
ipa.c fix various compiler warnings (on FreeBSD-11.0) 2017-02-08 16:49:14 +01:00
kasumi.c gsm: Add Kasumi cipher implementation 2014-06-16 14:59:30 +02:00
lapd_core.c lapd_core: Use 'struct value_string' for LAPD state names 2017-03-15 10:24:25 +01:00
lapdm.c Check for proper lapdm_datalink entity 2017-03-02 14:10:06 +00:00
libosmogsm.map libosmocoding: migrate transcoding routines from OsmoBTS 2017-03-07 01:06:38 +07:00
oap.c gsm/oap: more robust: decode presence as clearly either 1 or 0 2016-12-11 03:42:58 +01:00
rsl.c rsl: add rsl_act_type_name() 2016-07-23 15:32:55 +02:00
rxlev_stat.c bitvec: add bitvec_find_first_bit_pos() from gsm/rxlev_stat.c 2011-03-28 20:00:45 +02:00
sysinfo.c Add function to get osmo_earfcn bit size 2016-04-16 13:41:56 +02:00
tlv_parser.c Add parsed TLV helpers from OsmoBTS 2017-01-06 10:21:11 +00:00