libosmocore/include/osmocom
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: implement dedicated codec API for FACCH/[FH] 2023-05-26 02:35:11 +07:00
core osmo_io: Improve handling and documentation of segmentation_cb 2023-05-19 12:50:21 +00:00
crypt libosmogsm: Allow auth API caller to specify RES length 2023-06-02 08:29:55 +00:00
ctrl doxygen: remove documentation for non-existent params 2023-02-28 18:48:56 +00:00
gprs gb: ns2: Rename parameter name in gprs_ns2_nsvc_by_sockaddr_bind() 2023-04-27 17:52:16 +02:00
gsm ASCI: Add IE transcoding according to 3GPP TS 48.008 2023-06-02 08:28:49 +00:00
isdn isdn: Add V.110 encoder/decoder 2023-03-08 20:43:15 +01:00
sim Split include/Makefile.am content into subdirs 2023-01-18 18:29:34 +01:00
usb Split include/Makefile.am content into subdirs 2023-01-18 18:29:34 +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