libosmocore/utils
Harald Welte d8e5309527 libosmogsm: Allow auth API caller to specify RES length
There are 3G algorithms which support different lengths of RES values
(4, 8, 16 byte).  For MILENAGE, we never really had to bother, as
the 4-byte RES is simply the first 4 bytes of the 8-byte RES.

However, for TUAK, the expected RES length is an input parameter to
the Keccak crypto functions, so the result of all parameters (including
CK, IK, ...) will be completely different for RES length 4 than RES
length 8.

So let's permit the caller of the osmocom auth API to specify the
requested RES length via the osmo_auth_vector.res_len parameter.

For backwards compatibility of callers of the old osmo_auth_gen_vec/
osmo_auth_gen_vec_auts API: Always force the res_len to 8 in this case,
which was the hard-coded length before this patch.

Change-Id: Ic662843fbe8b5c58e4af39ea630ad5ac13fd6bef
2023-06-02 08:29:55 +00:00
..
osmo-stat-dummy utils/osmo-stat-dummy/Makefile.am: drop empty variables 2023-03-11 06:49:47 +07:00
Makefile.am New osmo-gsmtap-logsend utility 2023-03-15 11:53:08 +00:00
conv_codes_gsm.py gsm: fix convolutional code definition for TCH/F4.8 2023-05-25 19:08:53 +07:00
conv_gen.py treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gen_website_doc_tree.sh add script to generate http://www.osmocom.org/doc tree structure 2011-08-20 17:40:08 +02:00
gsmtap-logsend.c New osmo-gsmtap-logsend utility 2023-03-15 11:53:08 +00:00
gsmtap.py utils: add gsmtap_logread.py a gsmtap log reader 2019-06-04 08:37:06 +00:00
gsmtap_logread.py utils/gsmtap_logread.py: make it executable 2020-08-04 14:27:50 +00:00
osmo-aka-verify.c Support building with -Werror=strict-prototypes / -Werror=old-style-definition 2022-11-03 12:44:28 +01:00
osmo-arfcn.c osmo-arfcn: Fix false positive in gcc 12.1.0 2022-05-13 13:20:48 +02:00
osmo-auc-gen.c libosmogsm: Allow auth API caller to specify RES length 2023-06-02 08:29:55 +00:00
osmo-config-merge.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
osmo-ns-dummy-vty.c Use internal <osmocom/core/talloc.h> everywhere 2022-04-27 12:42:15 +00:00
osmo-ns-dummy.c libosmocore: Transition to use of 'telnet_init_default' 2023-01-27 00:49:45 +01:00
osmo-sim-test.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00