Common library for all Osmocom projects (libosmocore, libosmogsm, libosmovty, libosmogb, libosmosim, libosmousb, ...) https://osmocom.org/projects/libosmocore
Go to file
Neels Hofmeyr 82c9a0ec19 osmo_auth_gen_vec: UMTS auth: store last used SQN, not next
Prepare for the implementation of splitting SQN increments in SEQ and an IND
part; particularly to clearly show where the changes in auth/milenage_test's
expectations originate.

Rationale: the source of UMTS auth vectors, for us usually OsmoHLR, typically
stores the last used SQN, not the next one to be used. Particularly with the
upcoming fix of the SQN scheme, this change is important: the next SQN will
depend on which entity asks for it, because each auth consumer may have a
particular slot in the IND part of SQN. It does not make sense to store the
next SQN, because we will not know which consumer that will be for.

The milenage_test has always calculated a tuple for SQN == 34. To account for
the increment now happening before calculating a tuple, lower the test_aud->sqn
by one to 0x21 == 33, so that it is still calculating for SQN == 34.

Because we are no longer incrementing SQN after the tuple is generated,
milenage_test's expected output after doing an AUTS resync to 31 changes to the
next SQN = 32, the SQN used for the generated tuple.

(BTW, a subsequent patch will illustrate AUTS in detail.)

osmo-auc-gen now needs to pass the user requested SQN less one, because the SQN
will be incremented befor generating the auth vector. Also the SQN remains the
same after generating, so SQN output needs less decrementing. Note that the
expected output for osmo-auc-gen_test remains unchanged, hence the same input
arguments (particularly -s <sqn> and -A <auts>) still produce the same results.

Note: osmo-hlr regression tests will require adjustments when this patch is
merged, because it must now pass desired_sqn - 1 instead of just desired_sqn.
See osmo-hlr change-id I4ec5a578537acb1d9e1ebfe00a72417fc3ca5894 .

Related: OS#1968
Change-Id: Iadf43f21e0605e9e85f7e8026c40985f7ceff1a3
2017-03-15 12:46:08 +00:00
contrib contrib: add fsm-to-dot.py to draw osmo_fsm dotty graphs 2016-12-09 11:29:06 +00:00
debian libosmocoding: fix .deb building 2017-03-07 15:36:33 +01:00
doc OAP:remove design doc. osmocom-authn-protocol.txt 2017-02-15 17:56:39 +01:00
include gsm_04_08: add _NUM_CHREQ_T to enum 2017-03-14 13:47:29 +01:00
m4 Create a dummy m4 directory to make autoreconf --install --force work 2010-03-24 02:55:33 +01:00
src osmo_auth_gen_vec: UMTS auth: store last used SQN, not next 2017-03-15 12:46:08 +00:00
tests osmo_auth_gen_vec: UMTS auth: store last used SQN, not next 2017-03-15 12:46:08 +00:00
utils osmo_auth_gen_vec: UMTS auth: store last used SQN, not next 2017-03-15 12:46:08 +00:00
.gitignore libosmocoding: migrate transcoding routines from OsmoBTS 2017-03-07 01:06:38 +07:00
.gitreview add .gitreview 2016-05-19 06:39:13 +00:00
.mailmap Add .mailmap file for mapping mail addresses in shortlog 2016-08-08 13:12:17 +02:00
COPYING add GPL to project source 2010-02-21 09:21:30 +01:00
Doxyfile.codec.in Doxygen: enable tagfile generation and usage for cross-project references 2016-04-24 19:48:05 +02:00
Doxyfile.coding.in libosmocoding: migrate transcoding routines from OsmoBTS 2017-03-07 01:06:38 +07:00
Doxyfile.core.in Doxygen: enable tagfile generation and usage for cross-project references 2016-04-24 19:48:05 +02:00
Doxyfile.gsm.in Doxygen: exclude osmocom/core/gsm/protocol/* 2017-03-15 09:13:38 +00:00
Doxyfile.vty.in Doxygen: enable tagfile generation and usage for cross-project references 2016-04-24 19:48:05 +02:00
Makefile.am add osmo-auc-gen_test 2017-03-15 12:46:08 +00:00
TODO-RELEASE GSUP, OAP, osmo-gen-vec: fix AUTS length to 14, not 16 2017-02-02 20:34:16 +01:00
configure.ac libosmocoding: migrate transcoding routines from OsmoBTS 2017-03-07 01:06:38 +07:00
git-version-gen add git-version-gen magic to automatically generate package version 2010-03-23 00:30:19 +08:00
libosmocodec.pc.in codec: Add the missing bits for include to install and pkgconfig to work 2010-10-24 18:23:10 +02:00
libosmocoding.pc.in libosmocoding: migrate transcoding routines from OsmoBTS 2017-03-07 01:06:38 +07:00
libosmocore.pc.in talloc: Untested change to unbreak build 2015-12-10 19:50:29 +01:00
libosmoctrl.pc.in remove our internal copy of talloc, use system libtalloc 2015-12-05 23:38:18 +01:00
libosmogb.pc.in remove our internal copy of talloc, use system libtalloc 2015-12-05 23:38:18 +01:00
libosmogsm.pc.in remove our internal copy of talloc, use system libtalloc 2015-12-05 23:38:18 +01:00
libosmosim.pc.in remove our internal copy of talloc, use system libtalloc 2015-12-05 23:38:18 +01:00
libosmovty.pc.in remove our internal copy of talloc, use system libtalloc 2015-12-05 23:38:18 +01:00