libosmocore/src
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
..
codec codec: new function osmo_hr_sid_reset() 2023-05-27 10:51:17 +00:00
coding coding: gsm0503_tch_{fr,hr}_encode(): add ability to emit BFI 2023-05-27 11:06:57 +00:00
core osmo_io: Support detecting non-blocking connect() 2023-05-19 12:50:21 +00:00
ctrl Makefile.am: Make libraries depend on .map files 2023-03-06 17:07:48 +00:00
gb ns2: Count transmitted/dropped in each layer implementation 2023-05-16 08:04:40 +00:00
gsm libosmogsm: Allow auth API caller to specify RES length 2023-06-02 08:29:55 +00:00
isdn isdn: fix identical operands in v110_adapt_IR8000_to_2400() 2023-03-17 17:08:23 +07:00
pseudotalloc Fix all references to config.h 2023-01-18 19:04:36 +01:00
sim Bump version: 1.7.0.119-b31a-dirty → 1.8.0 2023-02-07 11:20:42 +01:00
usb Fix all references to config.h 2023-01-18 19:04:36 +01:00
vty vty: move struct vty_parent_node to private API 2023-05-06 03:49:08 +00:00
Makefile.am create libosmoisdn sub-library 2023-01-21 22:41:57 +01:00