gerrit-log
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
May 2023
- 1 participants
- 2583 discussions
[M] Change in libosmocore[master]: osmo-auc-gen: Convert over to osmo_auth_gen_vec*2 API
by laforge 30 May '23
by laforge 30 May '23
30 May '23
Attention is currently required from: pespin.
Hello Jenkins Builder, pespin,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmocore/+/33090
to look at the new patch set (#2).
Change subject: osmo-auc-gen: Convert over to osmo_auth_gen_vec*2 API
......................................................................
osmo-auc-gen: Convert over to osmo_auth_gen_vec*2 API
This allows the tool to support K/OPc lengths != 128 bit.
Let's add more length checks of command-line arguments while we're
adding those checks for K/OPc.
Change-Id: Iffed02ec0fc9c9a996da6f218d67314e381cbb29
---
M utils/osmo-auc-gen.c
1 file changed, 47 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/90/33090/2
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33090
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iffed02ec0fc9c9a996da6f218d67314e381cbb29
Gerrit-Change-Number: 33090
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newpatchset
1
0
[M] Change in libosmocore[master]: osmo-auc-gen: Convert over to osmo_auth_gen_vec*2 API
by laforge 30 May '23
by laforge 30 May '23
30 May '23
Attention is currently required from: pespin.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/33090 )
Change subject: osmo-auc-gen: Convert over to osmo_auth_gen_vec*2 API
......................................................................
Patch Set 1:
(1 comment)
File utils/osmo-auc-gen.c:
https://gerrit.osmocom.org/c/libosmocore/+/33090/comment/38a95087_e3d29dff
PS1, Line 117: /* 3GPP TS 33.102 6.3.7: "The authentication key (K) shall have a length of 128 bits or 256 bits." */
> why is this comment added here?
thanks. it's left-over from a previous version of the patch, where some related code was inserted here.
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33090
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iffed02ec0fc9c9a996da6f218d67314e381cbb29
Gerrit-Change-Number: 33090
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 30 May 2023 14:25:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
1
0
[L] Change in libosmocore[master]: libosmogsm: Add support for TUAK authentication algorithm
by Jenkins Builder 30 May '23
by Jenkins Builder 30 May '23
30 May '23
Jenkins Builder has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/33094 )
Change subject: libosmogsm: Add support for TUAK authentication algorithm
......................................................................
Patch Set 1:
(219 comments)
File src/gsm/tuak/KeccakP-1600-3gpp.h:
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f3b8d1e0_5e27ea52
PS1, Line 22: EXPORTIT void Keccak_f_8 (uint8_t s[200]);
space prohibited between function name and open parenthesis '('
File src/gsm/tuak/KeccakP-1600-3gpp.c:
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/7dc33c4a_746012e3
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/757f45a9_69c4b0af
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/07b106a2_af39c92f
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/73247bdf_839cc400
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f28ea848_f8c2586a
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/030f23d3_f9f8ef64
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/c209d1a1_5fb651ea
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/21c031ce_496ee7e7
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0462ff7e_dc679892
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a3e9c299_948bb2e1
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/9612e708_6dd497d4
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/cf30f296_156a5e12
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/754bb38b_5d181e6a
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/404fb88e_9d6643f6
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/04324f2a_dc9bde88
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/55928e8e_7e011d4a
PS1, Line 12: const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/c15449c8_ef48579a
PS1, Line 13: 15,21,8,18,2,61,56,14};
please, no spaces at the start of a line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/6c83cd4b_0f772a1d
PS1, Line 13: 15,21,8,18,2,61,56,14};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/51a911e3_6b2d8c9c
PS1, Line 13: 15,21,8,18,2,61,56,14};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/9d66690c_b3103aac
PS1, Line 13: 15,21,8,18,2,61,56,14};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/112daa73_7eb19f7d
PS1, Line 13: 15,21,8,18,2,61,56,14};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e35f7957_e22d8e93
PS1, Line 13: 15,21,8,18,2,61,56,14};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0953e248_f58487b7
PS1, Line 13: 15,21,8,18,2,61,56,14};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f8ee3625_9c3a92f8
PS1, Line 13: 15,21,8,18,2,61,56,14};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/b350d859_040eae68
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/c27e59ac_9014e3ef
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/89e91b72_ac90505a
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f4a329c2_6b8f48d6
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/96d22e24_812ed4fd
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e0ff439f_56a2b7b1
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/3b31003b_2048937a
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/3de67bd1_fc82b816
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/05eeeaba_db6f6468
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/73b40b93_f948572d
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/5aa39f18_e8cd3cf0
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ff11c797_ed763063
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/674d3ed9_f143b93f
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/c9759366_f2e04841
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/1eeab0a2_d84d0a61
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/6fae07eb_c98efb1d
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a1e4bb6b_ac2b10d5
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e35e3ec1_aa0d01f8
PS1, Line 15: const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0ac97784_db0dd849
PS1, Line 16: 23,2,8,14,15,21};
please, no spaces at the start of a line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/3fae5ef3_3ba20421
PS1, Line 16: 23,2,8,14,15,21};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/dbe2128a_af19463f
PS1, Line 16: 23,2,8,14,15,21};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/5f36bdcb_749991f1
PS1, Line 16: 23,2,8,14,15,21};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/dffa2310_dbdc1276
PS1, Line 16: 23,2,8,14,15,21};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/9e967695_6b6205c8
PS1, Line 16: 23,2,8,14,15,21};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/58877e82_94065a53
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/792ae0aa_7419ab64
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e0141e27_67184e8a
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d15f42a4_4bf67ddf
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a11309b8_393f0e83
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/609fc71a_f82c6c9d
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d5662588_7fc8b806
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ee3c91a6_d017743f
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/73b9ff8f_923f9cbe
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/62eeec7e_56014dc9
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2a233a4b_f4e2e703
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/dd3bd91f_445b82eb
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0a2815fc_1786d382
PS1, Line 18: const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e9cc40f9_af742b4d
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
please, no spaces at the start of a line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/cf725397_e1b2c095
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/8bc58c87_897c7d5d
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d819edc2_7d69f3a5
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0e54e0d1_40197029
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/62bbfc0b_0163f8c7
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/598d36d7_220a498d
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/6e03ae9a_bb567086
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ed5cbe95_ade2251c
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/15bb6d5e_190482a5
PS1, Line 19: 217,83,82,192,26,106,241,208,33,120};
space required after that ',' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/c4488d2e_9c656296
PS1, Line 32: for(round=0; round<24; ++round)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/6c70a095_18062b8f
PS1, Line 32: for(round=0; round<24; ++round)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/03b3b082_3e8777ca
PS1, Line 32: for(round=0; round<24; ++round)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/cfb7e855_f6063c9b
PS1, Line 32: for(round=0; round<24; ++round)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/12a43180_6aaeaf9b
PS1, Line 34: for(i=0; i<5; ++i)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d0bad51c_2d0069eb
PS1, Line 34: for(i=0; i<5; ++i)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f79c69a9_708a2d45
PS1, Line 34: for(i=0; i<5; ++i)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/382ee4ca_802e9212
PS1, Line 36: for(i=0; i<5; ++i, s+=5)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/feee4265_f1ac35b6
PS1, Line 36: for(i=0; i<5; ++i, s+=5)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a3e065ef_c511acbd
PS1, Line 36: for(i=0; i<5; ++i, s+=5)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/62ac3c64_6fe1b192
PS1, Line 36: for(i=0; i<5; ++i, s+=5)
spaces required around that '+=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d4523e41_2d5d5540
PS1, Line 36: for(i=0; i<5; ++i, s+=5)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/17d6a4c1_edbd05b4
PS1, Line 46: for(i=1; i<25; ++i)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f8615300_cc054279
PS1, Line 46: for(i=1; i<25; ++i)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a96699d5_16a7f973
PS1, Line 46: for(i=1; i<25; ++i)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/897036fd_d9e22128
PS1, Line 50: for(t[1] = s[i=1]; (j=Pi[i]) > 1; s[i]=s[j], i=j);
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/51713854_5f39733c
PS1, Line 50: for(t[1] = s[i=1]; (j=Pi[i]) > 1; s[i]=s[j], i=j);
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/61f3ca9e_722b31a4
PS1, Line 50: for(t[1] = s[i=1]; (j=Pi[i]) > 1; s[i]=s[j], i=j);
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/9841cd22_227cdc92
PS1, Line 50: for(t[1] = s[i=1]; (j=Pi[i]) > 1; s[i]=s[j], i=j);
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/cc88af27_f9c99386
PS1, Line 50: for(t[1] = s[i=1]; (j=Pi[i]) > 1; s[i]=s[j], i=j);
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/34d63388_61ecf5cb
PS1, Line 54: for(i=0; i<5; ++i, s += 5)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/754a663f_92f2939c
PS1, Line 54: for(i=0; i<5; ++i, s += 5)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e067fb41_e4ea4980
PS1, Line 54: for(i=0; i<5; ++i, s += 5)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2202155e_ff371bcc
PS1, Line 54: for(i=0; i<5; ++i, s += 5)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/25e87938_ee5a7aae
PS1, Line 60: for(j=0; j<5; ++j) s[j] ^= t[j];
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/7273bf24_38d9d7cb
PS1, Line 60: for(j=0; j<5; ++j) s[j] ^= t[j];
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2466abce_91584bc2
PS1, Line 60: for(j=0; j<5; ++j) s[j] ^= t[j];
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/4c09aee9_e8bc62f7
PS1, Line 66: *s ^= (t[0] | (t[0]<<11) | (t[0]<<26) | (t[0]<<57))
trailing whitespace
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/17c8cd28_ebddbd2f
PS1, Line 67: & 0x800000008000808BULL; /* set & mask bits 0,1,3,7,15,31,63 */
code indent should use tabs where possible
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2febb03e_ef9ab386
PS1, Line 67: & 0x800000008000808BULL; /* set & mask bits 0,1,3,7,15,31,63 */
please, no spaces at the start of a line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/5d763390_be25e892
PS1, Line 79: for(round=0; round<24; ++round)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/5edf2d12_68f72728
PS1, Line 79: for(round=0; round<24; ++round)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a85e2a80_d6801209
PS1, Line 79: for(round=0; round<24; ++round)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0d553eb2_6f4d6bd7
PS1, Line 79: for(round=0; round<24; ++round)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/297dacf8_3f824a08
PS1, Line 81: for(i=0; i<40; ++i)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d37053f8_8cf0d428
PS1, Line 81: for(i=0; i<40; ++i)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/43043d55_ce304e5d
PS1, Line 81: for(i=0; i<40; ++i)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f76cfbd9_4e8a5ef8
PS1, Line 82: t[i]=s[i]^s[40+i]^s[80+i]^s[120+i]^s[160+i];
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ba9cbffc_6fb84c7b
PS1, Line 83: for(i=0; i<200; i+=8)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/639c54cf_a6b7651f
PS1, Line 83: for(i=0; i<200; i+=8)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f77935b7_06d001c0
PS1, Line 83: for(i=0; i<200; i+=8)
spaces required around that '+=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2f27338b_d88926bd
PS1, Line 83: for(i=0; i<200; i+=8)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/bf4c8660_71471e62
PS1, Line 84: for(j = (i+32)%40, k=0; k<8; ++k)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/554f98ca_b365fc2c
PS1, Line 84: for(j = (i+32)%40, k=0; k<8; ++k)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d4a5420b_7063927f
PS1, Line 84: for(j = (i+32)%40, k=0; k<8; ++k)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0ad9b70e_250b0ea5
PS1, Line 86: for(i=0; i<40; t[i] = (t[i]<<1)|j, i+=8)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/17d52b6a_3e324d79
PS1, Line 86: for(i=0; i<40; t[i] = (t[i]<<1)|j, i+=8)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/212da08a_73df4134
PS1, Line 86: for(i=0; i<40; t[i] = (t[i]<<1)|j, i+=8)
spaces required around that '+=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/592b45d4_ac3614cb
PS1, Line 86: for(i=0; i<40; t[i] = (t[i]<<1)|j, i+=8)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/55647a35_c004c2a0
PS1, Line 87: for(j = t[i+7]>>7, k=7; k; --k)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ccbe98cf_dade123b
PS1, Line 87: for(j = t[i+7]>>7, k=7; k; --k)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/08055971_06e12db8
PS1, Line 89: for(i=0; i<200; i+=8)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ca3c3e5e_32ab6c3b
PS1, Line 89: for(i=0; i<200; i+=8)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/fac373a1_aefa0152
PS1, Line 89: for(i=0; i<200; i+=8)
spaces required around that '+=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ef606eb8_46d08af5
PS1, Line 89: for(i=0; i<200; i+=8)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/923c5554_b02cdc1f
PS1, Line 90: for(j = (i+8)%40, k=0; k<8; ++k)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/b8539003_e392e09b
PS1, Line 90: for(j = (i+8)%40, k=0; k<8; ++k)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0c26f48f_135cb738
PS1, Line 90: for(j = (i+8)%40, k=0; k<8; ++k)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/8928e99d_2de00623
PS1, Line 94: for(i=8; i<200; i+=8)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/b1baf1ca_95a9eab0
PS1, Line 94: for(i=8; i<200; i+=8)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/8742a7d7_4ff2206a
PS1, Line 94: for(i=8; i<200; i+=8)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a227d888_726ce3e9
PS1, Line 94: for(i=8; i<200; i+=8)
spaces required around that '+=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/aedf773b_e769c1e1
PS1, Line 94: for(i=8; i<200; i+=8)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/bbf17597_30234731
PS1, Line 95: { for(j = Rho[i>>3]>>3, k=0; k<8; ++k) /* j:=bytes to shift, s->t */
please, no space before tabs
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f55172c8_a9c9263f
PS1, Line 95: { for(j = Rho[i>>3]>>3, k=0; k<8; ++k) /* j:=bytes to shift, s->t */
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/18c3fee2_5ea2ee0e
PS1, Line 95: { for(j = Rho[i>>3]>>3, k=0; k<8; ++k) /* j:=bytes to shift, s->t */
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/4e2cf4c0_7e23a248
PS1, Line 95: { for(j = Rho[i>>3]>>3, k=0; k<8; ++k) /* j:=bytes to shift, s->t */
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/982e587b_6ccbe62b
PS1, Line 97: for(j = Rho[i>>3]&7, k=7; k; --k) /* j:=bits to shift, t->s */
please, no space before tabs
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/623b5824_accc9bf2
PS1, Line 97: for(j = Rho[i>>3]&7, k=7; k; --k) /* j:=bits to shift, t->s */
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/27a662a8_ef3e0a20
PS1, Line 97: for(j = Rho[i>>3]&7, k=7; k; --k) /* j:=bits to shift, t->s */
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/6d81455a_b63bf564
PS1, Line 103: for(k=8; k<16; ++k) t[k] = s[k]; /* =memcpy(t+8, s+8, 8) */
please, no space before tabs
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2476f270_7894a365
PS1, Line 103: for(k=8; k<16; ++k) t[k] = s[k]; /* =memcpy(t+8, s+8, 8) */
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/5434ac98_93d99c9c
PS1, Line 103: for(k=8; k<16; ++k) t[k] = s[k]; /* =memcpy(t+8, s+8, 8) */
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/1b988677_18fc8dd1
PS1, Line 103: for(k=8; k<16; ++k) t[k] = s[k]; /* =memcpy(t+8, s+8, 8) */
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/c82a6b95_e469b8ff
PS1, Line 104: for(i=1; (j=Pi[i])>1; i=j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/b10fe8ad_de10bb0f
PS1, Line 104: for(i=1; (j=Pi[i])>1; i=j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/26108463_3b88c512
PS1, Line 104: for(i=1; (j=Pi[i])>1; i=j)
spaces required around that '>' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0b0161d5_8625895a
PS1, Line 104: for(i=1; (j=Pi[i])>1; i=j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f9195a92_f71af1ab
PS1, Line 104: for(i=1; (j=Pi[i])>1; i=j)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/edefbc08_c78779de
PS1, Line 105: for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), s+(j<<3), 8) */
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/582069cd_62225ca2
PS1, Line 105: for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), s+(j<<3), 8) */
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2e36acad_cbd03d04
PS1, Line 105: for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), s+(j<<3), 8) */
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2ae58c15_388565d5
PS1, Line 107: for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), t+8, 8) */
please, no space before tabs
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/3edea6f8_b02f9b2b
PS1, Line 107: for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), t+8, 8) */
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/93f2750d_9813e0b4
PS1, Line 107: for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), t+8, 8) */
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/4b2a6e95_07cbb2e4
PS1, Line 107: for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), t+8, 8) */
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/62854cff_0249a7dc
PS1, Line 111: for(i=0; i<200; i+=40)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/5475652e_c3c42e5d
PS1, Line 111: for(i=0; i<200; i+=40)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a6560813_a77b933c
PS1, Line 111: for(i=0; i<200; i+=40)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/15e9188e_9fc31d82
PS1, Line 111: for(i=0; i<200; i+=40)
spaces required around that '+=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/5e955ced_2cfe48e6
PS1, Line 111: for(i=0; i<200; i+=40)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f2650234_ca7d6db9
PS1, Line 112: { for(j=0; j<40; ++j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e138cc59_5b67d1ac
PS1, Line 112: { for(j=0; j<40; ++j)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e185dba1_e3c206c6
PS1, Line 112: { for(j=0; j<40; ++j)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ad1168e4_95ab44b1
PS1, Line 113: t[j]=(~s[i+(j+8)%40]) & s[i+(j+16)%40];
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/22a455ad_92a46910
PS1, Line 114: for(j=0; j<40; ++j) s[i+j]^=t[j];
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d38de161_df903c57
PS1, Line 114: for(j=0; j<40; ++j) s[i+j]^=t[j];
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e25eac71_6e5a9104
PS1, Line 114: for(j=0; j<40; ++j) s[i+j]^=t[j];
spaces required around that '^=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/51bdfc6e_0d828d36
PS1, Line 114: for(j=0; j<40; ++j) s[i+j]^=t[j];
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/33dfc159_eddd0e41
PS1, Line 135: for(round=0; round<24; ++round)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f7eea16b_7c7a0de7
PS1, Line 135: for(round=0; round<24; ++round)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0fcba008_89ab4aa8
PS1, Line 135: for(round=0; round<24; ++round)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/2674b5d1_74c9a63c
PS1, Line 135: for(round=0; round<24; ++round)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/ea8d6909_4e03a224
PS1, Line 137: for(i=0; i<10; ++i)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/9fc49334_bbebf1c2
PS1, Line 137: for(i=0; i<10; ++i)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/892f45a9_3d1f137d
PS1, Line 137: for(i=0; i<10; ++i)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/d5beb347_2680c591
PS1, Line 139: for(i=0; i<5; ++i)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/58d87c9e_6738b7e6
PS1, Line 139: for(i=0; i<5; ++i)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/871ecf3a_43f6fc35
PS1, Line 139: for(i=0; i<5; ++i)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/4307b4b4_34d576df
PS1, Line 140: for(j=8, k=2; ; j%=10, k=(k+2)%10)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/31ffb6d3_fbc0eeeb
PS1, Line 140: for(j=8, k=2; ; j%=10, k=(k+2)%10)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/3d80e8ab_0f90c4f1
PS1, Line 140: for(j=8, k=2; ; j%=10, k=(k+2)%10)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/9215db49_8fd6395a
PS1, Line 140: for(j=8, k=2; ; j%=10, k=(k+2)%10)
spaces required around that '%=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/84004300_01191abb
PS1, Line 140: for(j=8, k=2; ; j%=10, k=(k+2)%10)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/b76a4fee_80e9269d
PS1, Line 140: for(j=8, k=2; ; j%=10, k=(k+2)%10)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/4c346d99_3798e16b
PS1, Line 143: if(j==8) break;
spaces required around that '==' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/98f743f2_24e27d64
PS1, Line 143: if(j==8) break;
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/007ba90e_1ec15259
PS1, Line 148: for(i=2; i<50; i+=2)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/72940d44_6f1e2511
PS1, Line 148: for(i=2; i<50; i+=2)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/b22686e0_e75e0d69
PS1, Line 148: for(i=2; i<50; i+=2)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/56441273_550037cc
PS1, Line 148: for(i=2; i<50; i+=2)
spaces required around that '+=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/e3152604_361b505a
PS1, Line 148: for(i=2; i<50; i+=2)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a3fff000_c19c75f0
PS1, Line 153: s[i] = t[1-k], s[i+1] = t[k];
Possible comma where semicolon could be used
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/105cbb0e_7a52dfb7
PS1, Line 157: for(i=2, t[0]=s[2], t[1]=s[3]; (j=(Pi[i>>1]<<1))>2; i=j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/c0f23805_fb83c81c
PS1, Line 157: for(i=2, t[0]=s[2], t[1]=s[3]; (j=(Pi[i>>1]<<1))>2; i=j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/863c4a96_8e987f4e
PS1, Line 157: for(i=2, t[0]=s[2], t[1]=s[3]; (j=(Pi[i>>1]<<1))>2; i=j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/27f560b0_e0c59992
PS1, Line 157: for(i=2, t[0]=s[2], t[1]=s[3]; (j=(Pi[i>>1]<<1))>2; i=j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/9917076a_8da91967
PS1, Line 157: for(i=2, t[0]=s[2], t[1]=s[3]; (j=(Pi[i>>1]<<1))>2; i=j)
spaces required around that '>' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/96d52394_9818d213
PS1, Line 157: for(i=2, t[0]=s[2], t[1]=s[3]; (j=(Pi[i>>1]<<1))>2; i=j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/eeae03e8_5c0a83ee
PS1, Line 157: for(i=2, t[0]=s[2], t[1]=s[3]; (j=(Pi[i>>1]<<1))>2; i=j)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/69c411da_9830e973
PS1, Line 158: s[i]=s[j], s[i+1]=s[j+1];
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/b3322a9e_6ffde01e
PS1, Line 158: s[i]=s[j], s[i+1]=s[j+1];
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/4ef71efd_6df13d8c
PS1, Line 158: s[i]=s[j], s[i+1]=s[j+1];
Possible comma where semicolon could be used
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/05a6c5ec_ef657e03
PS1, Line 159: s[i]=t[0], s[i+1]=t[1];
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/0e52014e_4252b2fa
PS1, Line 159: s[i]=t[0], s[i+1]=t[1];
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/92dbd9b0_f92dd6c4
PS1, Line 159: s[i]=t[0], s[i+1]=t[1];
Possible comma where semicolon could be used
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/793c507a_501905bc
PS1, Line 162: for(i=0; i<5; ++i, s+=10)
that open brace { should be on the previous line
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/f3d4bcdc_48d8688b
PS1, Line 162: for(i=0; i<5; ++i, s+=10)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/92523332_d43ddd34
PS1, Line 162: for(i=0; i<5; ++i, s+=10)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/a2781d7e_5a534ccf
PS1, Line 162: for(i=0; i<5; ++i, s+=10)
spaces required around that '+=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/4c30890b_5e459e2a
PS1, Line 162: for(i=0; i<5; ++i, s+=10)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/bb1f4286_39629ee3
PS1, Line 163: { for(j=0; j<10; ++j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/53bb6f3e_56889cc4
PS1, Line 163: { for(j=0; j<10; ++j)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/50165c48_60161a18
PS1, Line 163: { for(j=0; j<10; ++j)
space required before the open parenthesis '('
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/41fb2922_1583ef2c
PS1, Line 165: for(j=0; j<10; ++j)
spaces required around that '=' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/6c0856ac_8ca6b1ca
PS1, Line 165: for(j=0; j<10; ++j)
spaces required around that '<' (ctx:VxV)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-7615):
https://gerrit.osmocom.org/c/libosmocore/+/33094/comment/9e9db5b7_a7ea6a19
PS1, Line 165: for(j=0; j<10; ++j)
space required before the open parenthesis '('
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33094
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib905b8d8bdf248e8299bf50666ee1bca8298433d
Gerrit-Change-Number: 33094
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-CC: Jenkins Builder
Gerrit-Comment-Date: Tue, 30 May 2023 14:25:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
1
0
[S] Change in libosmocore[master]: libosmogsm: Avoid executing MILENAGE crypto twice (for UMTS and GSM)
by laforge 30 May '23
by laforge 30 May '23
30 May '23
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/33093 )
Change subject: libosmogsm: Avoid executing MILENAGE crypto twice (for UMTS and GSM)
......................................................................
libosmogsm: Avoid executing MILENAGE crypto twice (for UMTS and GSM)
So far, we were executing the cryptographic functions to generate
MILENAGE authentication tuples *twice* for every call to
milenage_gen_vec: Once for UMTS, and another time for GSM.
Let's do this properly: Execute once for UMTS, an then call the
computationally much simpler C2 and C3 functions to compute the
SRES and Kc values from RES, and CK+IK, respectively.
Change-Id: I20ecf6d32974c1ba196bf56deba5b2cd971eaffb
---
M src/gsm/auth_milenage.c
1 file changed, 19 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/93/33093/1
diff --git a/src/gsm/auth_milenage.c b/src/gsm/auth_milenage.c
index a439b15..2bd05a6 100644
--- a/src/gsm/auth_milenage.c
+++ b/src/gsm/auth_milenage.c
@@ -54,7 +54,6 @@
uint8_t sqn[6];
uint64_t ind_mask;
uint64_t seq_1;
- int rc;
OSMO_ASSERT(aud->algo == OSMO_AUTH_ALG_MILENAGE);
@@ -138,9 +137,8 @@
sqn, _rand,
vec->autn, vec->ik, vec->ck, vec->res, &res_len);
- rc = gsm_milenage(opc, aud->u.umts.k, _rand, vec->sres, vec->kc);
- if (rc < 0)
- return rc;
+ osmo_auth_c3(vec->kc, vec->ck, vec->ik);
+ osmo_auth_c2(vec->sres, vec->res, vec->res_len, 1);
vec->auth_types = OSMO_AUTH_TYPE_UMTS | OSMO_AUTH_TYPE_GSM;
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33093
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I20ecf6d32974c1ba196bf56deba5b2cd971eaffb
Gerrit-Change-Number: 33093
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
[M] Change in libosmocore[master]: libosmogsm: Factor out the C2 derivation function
by laforge 30 May '23
by laforge 30 May '23
30 May '23
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/33092 )
Change subject: libosmogsm: Factor out the C2 derivation function
......................................................................
libosmogsm: Factor out the C2 derivation function
3GPP specifies the C2 derivation function (generating GSM SRES from UMTS XRES)
independent of the MILENAGE algorithm. So instead of open-coding it in
milenage.c:gsm_milenage(), let's create a separate public function
osmo_auth_c2() similar to the already-existing osmo_auth_c3() function.
gsm_milenage() can then simply use that function.
Change-Id: I0e7cd55f5578f891cb6cc1b0442920ba5beddae4
---
M include/osmocom/crypt/auth.h
M src/gsm/auth_core.c
M src/gsm/libosmogsm.map
M src/gsm/milenage/milenage.c
4 files changed, 47 insertions(+), 7 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/92/33092/1
diff --git a/include/osmocom/crypt/auth.h b/include/osmocom/crypt/auth.h
index 2f8804b..a42ad7a 100644
--- a/include/osmocom/crypt/auth.h
+++ b/include/osmocom/crypt/auth.h
@@ -142,5 +142,6 @@
enum osmo_auth_algo osmo_auth_alg_parse(const char *name);
void osmo_auth_c3(uint8_t kc[], const uint8_t ck[], const uint8_t ik[]);
+void osmo_auth_c2(uint8_t sres[4], const uint8_t *res, size_t res_len, uint8_t sres_deriv_func);
/* @} */
diff --git a/src/gsm/auth_core.c b/src/gsm/auth_core.c
index 1fa1d79..e99f71d 100644
--- a/src/gsm/auth_core.c
+++ b/src/gsm/auth_core.c
@@ -343,4 +343,32 @@
kc[i] = ck[i] ^ ck[i + 8] ^ ik[i] ^ ik[i + 8];
}
+/*! Derive GSM SRES from UMTS [X]RES (auth function c2 from 3GPP TS 33.103 Section 6.8.1.2
+ * \param[out] sres GSM SRES value, 4 byte target buffer
+ * \param[in] res UMTS XRES, 4..16 bytes input buffer
+ * \param[in] res_len length of res parameter (in bytes)
+ * \param[in] SRES derivation function (1 or 2, see 3GPP TS 55.205 Section 4
+ */
+void osmo_auth_c2(uint8_t sres[4], const uint8_t *res, size_t res_len, uint8_t sres_deriv_func)
+{
+ uint8_t xres[16];
+
+ OSMO_ASSERT(sres_deriv_func == 1 || sres_deriv_func == 2);
+
+ memcpy(xres, res, res_len);
+
+ /* zero-pad the end, if XRES is < 16 bytes */
+ if (res_len < sizeof(xres))
+ memset(xres+res_len, 0, sizeof(xres)-res_len);
+
+ if (sres_deriv_func == 1) {
+ /* SRES derivation function #1 */
+ for (unsigned int i = 0; i < 4; i++)
+ sres[i] = xres[i] ^ xres[4+i] ^ xres[8+i] ^ xres[12+i];
+ } else {
+ /* SRES derivation function #2 */
+ memcpy(sres, xres, 4);
+ }
+}
+
/*! @} */
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 8de3b54..dc7663e 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -561,6 +561,7 @@
osmo_auth_load;
osmo_auth_register;
osmo_auth_supported;
+osmo_auth_c2;
osmo_auth_c3;
osmo_sub_auth_type_names;
diff --git a/src/gsm/milenage/milenage.c b/src/gsm/milenage/milenage.c
index 3c14ab9..ba9ab33 100644
--- a/src/gsm/milenage/milenage.c
+++ b/src/gsm/milenage/milenage.c
@@ -244,19 +244,13 @@
int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres, u8 *kc)
{
u8 res[8], ck[16], ik[16];
- int i;
if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL))
return -1;
osmo_auth_c3(kc, ck, ik);
+ osmo_auth_c2(sres, res, sizeof(res), 1);
-#ifdef GSM_MILENAGE_ALT_SRES
- os_memcpy(sres, res, 4);
-#else /* GSM_MILENAGE_ALT_SRES */
- for (i = 0; i < 4; i++)
- sres[i] = res[i] ^ res[i + 4];
-#endif /* GSM_MILENAGE_ALT_SRES */
return 0;
}
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33092
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I0e7cd55f5578f891cb6cc1b0442920ba5beddae4
Gerrit-Change-Number: 33092
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
[M] Change in libosmocore[master]: libosmogsm: Allow auth API caller to specify RES length
by laforge 30 May '23
by laforge 30 May '23
30 May '23
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/33091 )
Change subject: libosmogsm: Allow auth API caller to specify RES length
......................................................................
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
---
M include/osmocom/crypt/auth.h
M src/gsm/auth_core.c
M src/gsm/auth_milenage.c
M tests/osmo-auc-gen/osmo-auc-gen_test.ok
M utils/osmo-auc-gen.c
5 files changed, 70 insertions(+), 25 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/91/33091/1
diff --git a/include/osmocom/crypt/auth.h b/include/osmocom/crypt/auth.h
index 2715164..2f8804b 100644
--- a/include/osmocom/crypt/auth.h
+++ b/include/osmocom/crypt/auth.h
@@ -91,7 +91,7 @@
uint8_t ck[OSMO_A5_MAX_KEY_LEN_BYTES]; /*!< ciphering key */
uint8_t ik[OSMO_A5_MAX_KEY_LEN_BYTES]; /*!< integrity key */
uint8_t res[16]; /*!< authentication result */
- uint8_t res_len; /*!< length (in bytes) of res: 8..16 bytes */
+ uint8_t res_len; /*!< length (in bytes) of res: 4..16 bytes */
uint8_t kc[8]; /*!< Kc for GSM encryption (A5) */
uint8_t sres[4]; /*!< authentication result for GSM */
uint32_t auth_types; /*!< bitmask of OSMO_AUTH_TYPE_* */
diff --git a/src/gsm/auth_core.c b/src/gsm/auth_core.c
index 7ccdbc8..1fa1d79 100644
--- a/src/gsm/auth_core.c
+++ b/src/gsm/auth_core.c
@@ -216,6 +216,10 @@
struct osmo_sub_auth_data2 aud2;
int rc;
+ /* old API callers are not expected to initialize this struct field,
+ * and always expect an 8-byte RES value */
+ vec->res_len = 8;
+
auth_data2auth_data2(&aud2, aud);
rc = osmo_auth_gen_vec2(vec, &aud2, _rand);
if (aud->type == OSMO_AUTH_TYPE_UMTS)
@@ -282,6 +286,10 @@
struct osmo_sub_auth_data2 aud2;
int rc;
+ /* old API callers are not expected to initialize this struct field,
+ * and always expect an 8-byte RES value */
+ vec->res_len = 8;
+
auth_data2auth_data2(&aud2, aud);
rc = osmo_auth_gen_vec_auts2(vec, &aud2, auts, rand_auts, _rand);
if (aud->type == OSMO_AUTH_TYPE_UMTS) {
diff --git a/src/gsm/auth_milenage.c b/src/gsm/auth_milenage.c
index 9e94293..a439b15 100644
--- a/src/gsm/auth_milenage.c
+++ b/src/gsm/auth_milenage.c
@@ -62,6 +62,8 @@
return -EINVAL;
if (aud->u.umts.opc_len != 16)
return -EINVAL;
+ if (vec->res_len != 4 && vec->res_len != 8)
+ return -EINVAL;
opc = gen_opc_if_needed(aud, gen_opc);
if (!opc)
@@ -135,7 +137,7 @@
milenage_generate(opc, aud->u.umts.amf, aud->u.umts.k,
sqn, _rand,
vec->autn, vec->ik, vec->ck, vec->res, &res_len);
- vec->res_len = res_len;
+
rc = gsm_milenage(opc, aud->u.umts.k, _rand, vec->sres, vec->kc);
if (rc < 0)
return rc;
diff --git a/tests/osmo-auc-gen/osmo-auc-gen_test.ok b/tests/osmo-auc-gen/osmo-auc-gen_test.ok
index 3c41f41..2da0b02 100644
--- a/tests/osmo-auc-gen/osmo-auc-gen_test.ok
+++ b/tests/osmo-auc-gen/osmo-auc-gen_test.ok
@@ -1,7 +1,7 @@
> osmo-auc-gen -3 -a milenage -r 6a61050765caa32c90371370e5d6dc2d -k 1dc4f974325cce611e54f516dc1fec56 -o 2a48162ff3edca4adf0b7b5e527d6c16 -s 0
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 6a61050765caa32c90371370e5d6dc2d
@@ -18,7 +18,7 @@
> osmo-auc-gen -3 -a milenage -r 6a61050765caa32c90371370e5d6dc2d -k 1dc4f974325cce611e54f516dc1fec56 -o 2a48162ff3edca4adf0b7b5e527d6c16 -s 1
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 6a61050765caa32c90371370e5d6dc2d
@@ -35,7 +35,7 @@
> osmo-auc-gen -3 -a milenage -r 6a61050765caa32c90371370e5d6dc2d -k 1dc4f974325cce611e54f516dc1fec56 -o 2a48162ff3edca4adf0b7b5e527d6c16 -s 23
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 6a61050765caa32c90371370e5d6dc2d
@@ -52,7 +52,7 @@
> osmo-auc-gen -3 -a milenage -r 1dc4f974325cce611e54f516dc1fec56 -k 2a48162ff3edca4adf0b7b5e527d6c16 -o 6a61050765caa32c90371370e5d6dc2d -s 42
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 1dc4f974325cce611e54f516dc1fec56
@@ -69,7 +69,7 @@
> osmo-auc-gen -3 -a milenage -r 2a48162ff3edca4adf0b7b5e527d6c16 -k 6a61050765caa32c90371370e5d6dc2d -o 1dc4f974325cce611e54f516dc1fec56 -s 99
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 2a48162ff3edca4adf0b7b5e527d6c16
@@ -86,7 +86,7 @@
> osmo-auc-gen -3 -a milenage -r 6a61050765caa32c90371370e5d6dc2d -k 2a48162ff3edca4adf0b7b5e527d6c16 -o 1dc4f974325cce611e54f516dc1fec56 -s 281474976710655
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 6a61050765caa32c90371370e5d6dc2d
@@ -103,7 +103,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -121,7 +121,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind 5
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -139,7 +139,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind 23
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -157,7 +157,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind 31
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -175,7 +175,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 0
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -193,7 +193,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 1
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -211,7 +211,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 1 --ind 1
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -229,7 +229,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 8
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -247,7 +247,7 @@
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 8 --ind 1
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
RAND: 39fa2f4e3d523d8619a73b4f65c3e14d
@@ -266,27 +266,27 @@
expecting error:
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind -1
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
expecting error:
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind 32
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
expecting error:
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind 42
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
expecting error:
> osmo-auc-gen -3 -a milenage -r 39fa2f4e3d523d8619a73b4f65c3e14d -k EB215756028D60E3275E613320AEC880 -o FB2A3D1B360F599ABAB99DB8669F8308 -A 979498b1f72d3e28c59fa2e72f9c --ind-len 0 --ind 1
-osmo-auc-gen (C) 2011-2012 by Harald Welte
+osmo-auc-gen (C) 2011-2023 by Harald Welte
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c
index 765ca0b..f21707d 100644
--- a/utils/osmo-auc-gen.c
+++ b/utils/osmo-auc-gen.c
@@ -98,6 +98,7 @@
"-s --sqn\tSpecify SQN (only for 3G)\n"
"-i --ind\tSpecify IND slot for new SQN after AUTS (only for 3G)\n"
"-l --ind-len\tSpecify IND bit length (default=5) (only for 3G)\n"
+ "-L --res-len\tSpecify RES byte length (default=8) (only for 3G)\n"
"-A --auts\tSpecify AUTS (only for 3G)\n"
"-r --rand\tSpecify random value\n"
"-I --ipsec\tOutput in triplets.dat format for strongswan\n");
@@ -124,10 +125,12 @@
int fmt_triplets_dat = 0;
uint64_t ind_mask = 0;
- printf("osmo-auc-gen (C) 2011-2012 by Harald Welte\n");
+ printf("osmo-auc-gen (C) 2011-2023 by Harald Welte\n");
printf("This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY\n\n");
memset(_auts, 0, sizeof(_auts));
+ memset(vec, 0, sizeof(*vec));
+ vec->res_len = 8; /* default */
while (1) {
int c;
@@ -142,6 +145,7 @@
{ "sqn", 1, 0, 's' },
{ "ind", 1, 0, 'i' },
{ "ind-len", 1, 0, 'l' },
+ { "res-len", 1, 0, 'L' },
{ "rand", 1, 0, 'r' },
{ "auts", 1, 0, 'A' },
{ "help", 0, 0, 'h' },
@@ -150,7 +154,7 @@
rc = 0;
- c = getopt_long(argc, argv, "23a:k:o:f:s:i:l:r:hO:A:I", long_options,
+ c = getopt_long(argc, argv, "23a:k:o:f:s:i:l:L:r:hO:A:I", long_options,
&option_index);
if (c == -1)
@@ -266,6 +270,14 @@
}
test_aud.u.umts.ind_bitlen = atoi(optarg);
break;
+ case 'L':
+ rc = atoi(optarg);
+ if (rc != 4 && rc != 8 && rc != 16) {
+ fprintf(stderr, "Invalid RES length %u\n", rc);
+ exit(2);
+ }
+ vec->res_len = rc;
+ break;
case 'r':
rc = osmo_hexparse(optarg, _rand, sizeof(_rand));
if (rc != sizeof(_rand)) {
@@ -314,8 +326,6 @@
exit(2);
}
- memset(vec, 0, sizeof(*vec));
-
if (test_aud.type == OSMO_AUTH_TYPE_UMTS) {
uint64_t seq_1 = 1LL << test_aud.u.umts.ind_bitlen;
ind_mask = seq_1 - 1;
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33091
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ic662843fbe8b5c58e4af39ea630ad5ac13fd6bef
Gerrit-Change-Number: 33091
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
[L] Change in libosmocore[master]: libosmogsm: Add support for TUAK authentication algorithm
by laforge 30 May '23
by laforge 30 May '23
30 May '23
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/33094 )
Change subject: libosmogsm: Add support for TUAK authentication algorithm
......................................................................
libosmogsm: Add support for TUAK authentication algorithm
The TUAK algorithm is specified in 3GPP TS 35.231, 232 and 233 and
intended as an alternative to MILENAGE. It's based around the
cryptographic function of KeccakP1600, which is part of SHA-3.
This patch adds support for TUAK to the libosmogsm authentication
core API via 'struct osmo_auth_impl'.
Unit tests covering the test cases from the 3GPP specification are added
(and are all passing).
Change-Id: Ib905b8d8bdf248e8299bf50666ee1bca8298433d
---
M include/osmocom/crypt/auth.h
M src/gsm/Makefile.am
M src/gsm/auth_core.c
A src/gsm/auth_tuak.c
A src/gsm/tuak/KeccakP-1600-3gpp.c
A src/gsm/tuak/KeccakP-1600-3gpp.h
A src/gsm/tuak/tuak.c
A src/gsm/tuak/tuak.h
M tests/Makefile.am
A tests/auth/tuak_test.ok
10 files changed, 877 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/94/33094/1
diff --git a/include/osmocom/crypt/auth.h b/include/osmocom/crypt/auth.h
index a42ad7a..86bf02f 100644
--- a/include/osmocom/crypt/auth.h
+++ b/include/osmocom/crypt/auth.h
@@ -33,6 +33,7 @@
OSMO_AUTH_ALG_XOR_3G,
OSMO_AUTH_ALG_MILENAGE,
OSMO_AUTH_ALG_XOR_2G,
+ OSMO_AUTH_ALG_TUAK,
_OSMO_AUTH_ALG_NUM,
};
/* Backwards-compatibility. We used to call XOR-3G just "XOR" which became ambiguous when
diff --git a/src/gsm/Makefile.am b/src/gsm/Makefile.am
index ce0b1f4..a91fc6c 100644
--- a/src/gsm/Makefile.am
+++ b/src/gsm/Makefile.am
@@ -15,6 +15,8 @@
milenage/common.h milenage/crypto.h milenage/includes.h \
milenage/milenage.h
+noinst_HEADERS += tuak/KeccakP-1600-3gpp.h tuak/tuak.h
+
noinst_LTLIBRARIES = libgsmint.la
lib_LTLIBRARIES = libosmogsm.la
@@ -30,6 +32,7 @@
auth_milenage.c milenage/aes-encblock.c gea.c \
milenage/aes-internal.c milenage/aes-internal-enc.c \
milenage/milenage.c gan.c ipa.c gsm0341.c apn.c \
+ tuak/KeccakP-1600-3gpp.c tuak/tuak.c auth_tuak.c \
gsup.c gsup_sms.c gprs_gea.c gsm0503_conv.c oap.c gsm0808_utils.c \
gsm23003.c gsm23236.c mncc.c bts_features.c oap_client.c \
gsm29118.c gsm48_rest_octets.c cbsp.c gsm48049.c \
diff --git a/src/gsm/auth_core.c b/src/gsm/auth_core.c
index e99f71d..01e0778 100644
--- a/src/gsm/auth_core.c
+++ b/src/gsm/auth_core.c
@@ -308,6 +308,7 @@
{ OSMO_AUTH_ALG_XOR_3G, "XOR-3G" },
{ OSMO_AUTH_ALG_MILENAGE, "MILENAGE" },
{ OSMO_AUTH_ALG_XOR_2G, "XOR-2G" },
+ { OSMO_AUTH_ALG_TUAK, "TUAK" },
{ 0, NULL }
};
diff --git a/src/gsm/auth_tuak.c b/src/gsm/auth_tuak.c
new file mode 100644
index 0000000..32b3236
--- /dev/null
+++ b/src/gsm/auth_tuak.c
@@ -0,0 +1,206 @@
+/*! \file auth_tuak.c
+ * GSM/GPRS/3G authentication core infrastructure */
+/*
+ * (C) 2023 by Harald Welte <laforge(a)osmocom.org>
+ *
+ * All Rights Reserved
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+/* NOTE: TUAK offers a lot of size variability in terms of size of length of MAC_A, MAC_S,
+ * but this is not used within 3GPP. The different sizes of Kc and RES are handled via
+ * osmo_sub_auth_data2. */
+
+#include <errno.h>
+#include <osmocom/crypt/auth.h>
+#include <osmocom/core/bits.h>
+#include "tuak/tuak.h"
+
+/*! \addtogroup auth
+ * @{
+ */
+
+static const uint8_t *gen_opc_if_needed(const struct osmo_sub_auth_data2 *aud, uint8_t *gen_opc)
+{
+ int rc;
+
+ /* Check if we only know OP and compute OPC if required */
+ if (aud->type == OSMO_AUTH_TYPE_UMTS && aud->u.umts.opc_is_op) {
+ rc = tuak_opc_gen(gen_opc, aud->u.umts.k, aud->u.umts.k_len, aud->u.umts.opc);
+ if (rc < 0)
+ return NULL;
+ return gen_opc;
+ } else
+ return aud->u.umts.opc;
+}
+
+static int tuak_gen_vec(struct osmo_auth_vector *vec,
+ struct osmo_sub_auth_data2 *aud,
+ const uint8_t *_rand)
+{
+ size_t res_len = vec->res_len;
+ uint64_t next_sqn;
+ uint8_t gen_opc[32];
+ const uint8_t *opc;
+ uint8_t sqn[6];
+ uint64_t ind_mask;
+ uint64_t seq_1;
+
+ switch (vec->res_len) {
+ case 4:
+ case 8:
+ case 16:
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ OSMO_ASSERT(aud->algo == OSMO_AUTH_ALG_TUAK);
+
+ if (aud->u.umts.k_len != 16 && aud->u.umts.k_len != 32)
+ return -EINVAL;
+ if (aud->u.umts.opc_len != 32)
+ return -EINVAL;
+
+ opc = gen_opc_if_needed(aud, gen_opc);
+ if (!opc)
+ return -1;
+
+ /* Determine next SQN, according to 3GPP TS 33.102:
+ * SQN consists of SEQ and a lower significant part of IND bits:
+ *
+ * |----------SEQ------------|
+ * |------------------------SQN-----------|
+ * |-----IND----|
+ *
+ * The IND part is used as "slots": e.g. a given HLR client will always
+ * get the same IND part, called ind here, with incrementing SEQ. In
+ * the USIM, each IND slot enforces that its SEQ are used in ascending
+ * order -- as long as that constraint is satisfied, the SQN may jump
+ * forwards and backwards. For example, for ind_bitlen == 5, asking the
+ * USIM for SQN = 32, 64, 33 is allowed, because 32 and 64 are
+ * SEQ || (ind == 0), and though 33 is below 64, it is ind == 1 and
+ * allowed. Not allowed would be 32, 96, 64, because 64 would go
+ * backwards after 96, both being ind == 0.
+ *
+ * From the last used SQN, we want to increment SEQ + 1, and then pick
+ * the matching IND part.
+ *
+ * IND size is suggested in TS 33.102 as 5 bits. SQN is 48 bits long.
+ * If ind_bitlen is passed too large here, the algorithms will break
+ * down. But at which point should we return an error? A sane limit
+ * seems to be ind_bitlen == 10, but to protect against failure,
+ * limiting ind_bitlen to 28 is enough, 28 being the number of bits
+ * suggested for the delta in 33.102, which is discussed to still
+ * require 2^15 > 32000 authentications to wrap the SQN back to the
+ * start.
+ *
+ * Note that if a caller with ind == 1 generates N vectors, the SQN
+ * stored after this will reflect SEQ + N. If then another caller with
+ * ind == 2 generates another N vectors, this will then use SEQ + N
+ * onwards and end up with SEQ + N + N. In other words, most of each
+ * SEQ's IND slots will remain unused. When looking at SQN being 48
+ * bits wide, after dropping ind_bitlen (say 5) from it, we will still
+ * have a sequence range of 2^43 = 8.8e12, eight trillion sequences,
+ * which is large enough to not bother further. With the maximum
+ * ind_bitlen of 28 enforced below, we still get more than 1 million
+ * sequences, which is also sufficiently large.
+ *
+ * An ind_bitlen of zero may be passed from legacy callers that are not
+ * aware of the IND extension. For these, below algorithm works out as
+ * before, simply incrementing SQN by 1.
+ *
+ * This is also a mechanism for tools like the osmo-auc-gen to directly
+ * request a given SQN to be used. With ind_bitlen == 0 the caller can
+ * be sure that this code will increment SQN by exactly one before
+ * generating a tuple, thus a caller would simply pass
+ * { .ind_bitlen = 0, .ind = 0, .sqn = (desired_sqn - 1) }
+ */
+
+ if (aud->u.umts.ind_bitlen > OSMO_MILENAGE_IND_BITLEN_MAX)
+ return -2;
+
+ seq_1 = 1LL << aud->u.umts.ind_bitlen;
+ ind_mask = ~(seq_1 - 1);
+
+ /* the ind index must not affect the SEQ part */
+ if (aud->u.umts.ind >= seq_1)
+ return -3;
+
+ /* keep the incremented SQN local until gsm_milenage() succeeded. */
+ next_sqn = ((aud->u.umts.sqn + seq_1) & ind_mask) + aud->u.umts.ind;
+
+ osmo_store64be_ext(next_sqn, sqn, 6);
+
+ tuak_generate(opc, aud->u.umts.amf, aud->u.umts.k, aud->u.umts.k_len,
+ sqn, _rand, vec->autn, vec->ik, vec->ck, vec->res, &res_len);
+
+ /* generate the GSM Kc + SRES values using C2 + C3 functions */
+ osmo_auth_c3(vec->kc, vec->ck, vec->ik);
+ osmo_auth_c2(vec->sres, vec->res, vec->res_len, 1);
+
+ vec->auth_types = OSMO_AUTH_TYPE_UMTS | OSMO_AUTH_TYPE_GSM;
+
+ /* for storage in the caller's AUC database */
+ aud->u.umts.sqn = next_sqn;
+
+ return 0;
+}
+
+static int tuak_gen_vec_auts(struct osmo_auth_vector *vec,
+ struct osmo_sub_auth_data2 *aud,
+ const uint8_t *auts, const uint8_t *rand_auts,
+ const uint8_t *_rand)
+{
+ uint8_t sqn_out[6];
+ uint8_t gen_opc[32];
+ const uint8_t *opc;
+ int rc;
+
+ OSMO_ASSERT(aud->algo == OSMO_AUTH_ALG_TUAK);
+
+ if (aud->u.umts.k_len != 16 && aud->u.umts.k_len != 32)
+ return -EINVAL;
+ if (aud->u.umts.opc_len != 32)
+ return -EINVAL;
+
+ opc = gen_opc_if_needed(aud, gen_opc);
+
+ rc = tuak_auts(opc, aud->u.umts.k, sizeof(aud->u.umts.k), rand_auts, auts, sqn_out);
+ if (rc < 0)
+ return rc;
+
+ aud->u.umts.sqn_ms = osmo_load64be_ext(sqn_out, 6) >> 16;
+ /* Update our "largest used SQN" from the USIM -- milenage_gen_vec()
+ * below will increment SQN. */
+ aud->u.umts.sqn = aud->u.umts.sqn_ms;
+
+ return tuak_gen_vec(vec, aud, _rand);
+}
+
+static struct osmo_auth_impl tuak_alg = {
+ .algo = OSMO_AUTH_ALG_TUAK,
+ .name = "TUAK (libosmogsm built-in)",
+ .priority = 1000,
+ .gen_vec = &tuak_gen_vec,
+ .gen_vec_auts = &tuak_gen_vec_auts,
+};
+
+static __attribute__((constructor)) void on_dso_load_tuak(void)
+{
+ osmo_auth_register(&tuak_alg);
+}
+
+/*! @} */
diff --git a/src/gsm/tuak/KeccakP-1600-3gpp.c b/src/gsm/tuak/KeccakP-1600-3gpp.c
new file mode 100644
index 0000000..3f5e2ad
--- /dev/null
+++ b/src/gsm/tuak/KeccakP-1600-3gpp.c
@@ -0,0 +1,176 @@
+/* -----------------------------------------------------------------------
+ * code extracted from 3GPP TS 35.231, annex E for Keccak core functions
+ * https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.…
+ *-----------------------------------------------------------------------*/
+
+/* This code may be freely used or adapted.
+*/
+
+#include "KeccakP-1600-3gpp.h"
+
+
+const uint8_t Rho[25] = {0,1,62,28,27,36,44,6,55,20,3,10,43,25,39,41,45,
+ 15,21,8,18,2,61,56,14};
+
+const uint8_t Pi[25] = {0,6,12,18,24,3,9,10,16,22,1,7,13,19,20,4,5,11,17,
+ 23,2,8,14,15,21};
+
+const uint8_t Iota[24] = {1,146,218,112,155,33,241,89,138,136,57,42,187,203,
+ 217,83,82,192,26,106,241,208,33,120};
+
+#define ROTATE64(value, n) \
+((((uint64_t)(value))<<(n)) | (((uint64_t)(value))>>(64-(n))))
+
+/* ---------------------------------------------------------------------
+ 64-bit version of Keccak_f(1600)
+ ---------------------------------------------------------------------
+*/
+void Keccak_f_64(uint64_t s[25])
+{ uint64_t t[5];
+ uint8_t i, j, round;
+
+ for(round=0; round<24; ++round)
+ { /* Theta function */
+ for(i=0; i<5; ++i)
+ t[i] = s[i] ^ s[5+i] ^ s[10+i] ^ s[15+i] ^ s[20+i];
+ for(i=0; i<5; ++i, s+=5)
+ { s[0] ^= t[4] ^ ROTATE64(t[1], 1);
+ s[1] ^= t[0] ^ ROTATE64(t[2], 1);
+ s[2] ^= t[1] ^ ROTATE64(t[3], 1);
+ s[3] ^= t[2] ^ ROTATE64(t[4], 1);
+ s[4] ^= t[3] ^ ROTATE64(t[0], 1);
+ }
+ s -= 25;
+
+ /* Rho function */
+ for(i=1; i<25; ++i)
+ s[i] = ROTATE64(s[i], Rho[i]);
+
+ /* Pi function */
+ for(t[1] = s[i=1]; (j=Pi[i]) > 1; s[i]=s[j], i=j);
+ s[i] = t[1];
+
+ /* Chi function */
+ for(i=0; i<5; ++i, s += 5)
+ { t[0] = (~s[1]) & s[2];
+ t[1] = (~s[2]) & s[3];
+ t[2] = (~s[3]) & s[4];
+ t[3] = (~s[4]) & s[0];
+ t[4] = (~s[0]) & s[1];
+ for(j=0; j<5; ++j) s[j] ^= t[j];
+ }
+ s -= 25;
+
+ /* Iota function */
+ t[0] = Iota[round];
+ *s ^= (t[0] | (t[0]<<11) | (t[0]<<26) | (t[0]<<57))
+ & 0x800000008000808BULL; /* set & mask bits 0,1,3,7,15,31,63 */
+ }
+}
+
+
+/* ---------------------------------------------------------------------
+ 8-bit version of Keccak_f(1600)
+ ---------------------------------------------------------------------
+*/
+void Keccak_f_8(uint8_t s[200])
+{ uint8_t t[40], i, j, k, round;
+
+ for(round=0; round<24; ++round)
+ { /* Theta function */
+ for(i=0; i<40; ++i)
+ t[i]=s[i]^s[40+i]^s[80+i]^s[120+i]^s[160+i];
+ for(i=0; i<200; i+=8)
+ for(j = (i+32)%40, k=0; k<8; ++k)
+ s[i+k] ^= t[j+k];
+ for(i=0; i<40; t[i] = (t[i]<<1)|j, i+=8)
+ for(j = t[i+7]>>7, k=7; k; --k)
+ t[i+k] = (t[i+k]<<1)|(t[i+k-1]>>7);
+ for(i=0; i<200; i+=8)
+ for(j = (i+8)%40, k=0; k<8; ++k)
+ s[i+k] ^= t[j+k];
+
+ /* Rho function */
+ for(i=8; i<200; i+=8)
+ { for(j = Rho[i>>3]>>3, k=0; k<8; ++k) /* j:=bytes to shift, s->t */
+ t[(k+j)&7] = s[i+k];
+ for(j = Rho[i>>3]&7, k=7; k; --k) /* j:=bits to shift, t->s */
+ s[i+k] = (t[k]<<j) | (t[k-1]>>(8-j));
+ s[i] = (t[0]<<j) | (t[7]>>(8-j));
+ }
+
+ /* Pi function */
+ for(k=8; k<16; ++k) t[k] = s[k]; /* =memcpy(t+8, s+8, 8) */
+ for(i=1; (j=Pi[i])>1; i=j)
+ for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), s+(j<<3), 8) */
+ s[(i<<3)|k] = s[(j<<3)|k];
+ for(k=0; k<8; ++k) /* =memcpy(s+(i<<3), t+8, 8) */
+ s[(i<<3)|k] = t[k+8];
+
+ /* Chi function */
+ for(i=0; i<200; i+=40)
+ { for(j=0; j<40; ++j)
+ t[j]=(~s[i+(j+8)%40]) & s[i+(j+16)%40];
+ for(j=0; j<40; ++j) s[i+j]^=t[j];
+ }
+
+ /* Iota function */
+ k = Iota[round];
+ s[0] ^= k & 0x8B; /* bits 0, 1, 3, 7 */
+ s[1] ^= (k<<3)&0x80; /* bit 15 */
+ s[3] ^= (k<<2)&0x80; /* bit 31 */
+ s[7] ^= (k<<1)&0x80; /* bit 63 */
+
+ }
+}
+
+/* ---------------------------------------------------------------------
+ 32-bit version of Keccak_f(1600)
+ ---------------------------------------------------------------------
+*/
+void Keccak_f_32(uint32_t s[50])
+{ uint32_t t[10];
+ uint8_t i, j, round, k;
+
+ for(round=0; round<24; ++round)
+ { /* Theta function */
+ for(i=0; i<10; ++i)
+ t[i] = s[i] ^ s[10+i] ^ s[20+i] ^ s[30+i] ^ s[40+i];
+ for(i=0; i<5; ++i)
+ for(j=8, k=2; ; j%=10, k=(k+2)%10)
+ { *s++ ^= t[j++] ^ ((t[k]<<1)|(t[k+1]>>31));
+ *s++ ^= t[j++] ^ ((t[k+1]<<1)|(t[k]>>31));
+ if(j==8) break;
+ }
+ s -= 50;
+
+ /* Rho function */
+ for(i=2; i<50; i+=2)
+ { k = Rho[i>>1] & 0x1f;
+ t[0] = (s[i+1] << k) | (s[i] >> (32-k));
+ t[1] = (s[i] << k) | (s[i+1] >> (32-k));
+ k = Rho[i>>1] >> 5;
+ s[i] = t[1-k], s[i+1] = t[k];
+ }
+
+ /* Pi function */
+ for(i=2, t[0]=s[2], t[1]=s[3]; (j=(Pi[i>>1]<<1))>2; i=j)
+ s[i]=s[j], s[i+1]=s[j+1];
+ s[i]=t[0], s[i+1]=t[1];
+
+ /* Chi function */
+ for(i=0; i<5; ++i, s+=10)
+ { for(j=0; j<10; ++j)
+ t[j] = (~s[(j+2)%10]) & s[(j+4)%10];
+ for(j=0; j<10; ++j)
+ s[j] ^= t[j];
+ }
+ s -= 50;
+
+ /* Iota function */
+ t[0] = Iota[round];
+ s[0] ^= (t[0] | (t[0]<<11) | (t[0]<<26)) & 0x8000808B;
+ s[1] ^= (t[0]<<25) & 0x80000000;
+ }
+}
+
diff --git a/src/gsm/tuak/KeccakP-1600-3gpp.h b/src/gsm/tuak/KeccakP-1600-3gpp.h
new file mode 100644
index 0000000..a23cc46
--- /dev/null
+++ b/src/gsm/tuak/KeccakP-1600-3gpp.h
@@ -0,0 +1,25 @@
+/* -----------------------------------------------------------------------
+ * code extracted from 3GPP TS 35.231, annex E for Keccak core functions
+ * https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.…
+ *-----------------------------------------------------------------------*/
+
+/* this is the trick to make the code cross-platform
+ * at least, Win32 / Linux */
+
+#if defined(_WIN32) || defined(__WIN32__)
+# include <windows.h>
+# define EXPORTIT __declspec(dllexport)
+#else
+# define EXPORTIT
+#endif
+
+#include <stdint.h>
+
+/*------------------------------------------------------------------------
+ * KeccakP-1600-3gpp.h
+ *------------------------------------------------------------------------*/
+
+EXPORTIT void Keccak_f_8 (uint8_t s[200]);
+EXPORTIT void Keccak_f_32(uint32_t s[50]);
+EXPORTIT void Keccak_f_64(uint64_t s[25]);
+
diff --git a/src/gsm/tuak/tuak.c b/src/gsm/tuak/tuak.c
new file mode 100644
index 0000000..1e0fbeb
--- /dev/null
+++ b/src/gsm/tuak/tuak.c
@@ -0,0 +1,356 @@
+
+#include <stdint.h>
+#include <string.h>
+#include <string.h>
+#include <errno.h>
+
+#include <osmocom/core/utils.h>
+
+#include "KeccakP-1600-3gpp.h"
+
+/* TUAK authentication algorithm
+ * as proposed by 3GPP as an alternative to Milenage
+ * algorithm based on SHA-3 (more exactly its KeccakP-1600 permutation)
+ * see 3GPP TS 35.231, 232 and 233 */
+
+static unsigned int g_keccak_iterations = 1;
+static const char algoname[] = "TUAK1.0";
+const uint8_t zero16[16] = { 0, };
+
+void tuak_set_keccak_iterations(unsigned int i)
+{
+ g_keccak_iterations = i;
+}
+
+/* append data from 'input' to 'buf' at 'idx', reversing byte order */
+#define PUSH_DATA(buf, idx, input, nbytes) \
+ for (int i = nbytes-1; i >= 0; i--) { \
+ buf[idx++] = input[i]; \
+ }
+
+/* like memcpy(), but reversing they order of bytes */
+void memcpy_reverse(uint8_t *dst, const uint8_t *src, size_t len)
+{
+ for (size_t i = 0; i < len; i++)
+ dst[i] = src[len-i-1];
+}
+
+static void tuak_core(uint8_t buf[200], const uint8_t *opc, uint8_t instance, const uint8_t *_rand,
+ const uint8_t *amf, const uint8_t *sqn, const uint8_t *k, uint8_t k_len_bytes,
+ unsigned int keccac_iterations)
+{
+ unsigned int idx = 0;
+
+ PUSH_DATA(buf, idx, opc, 32);
+ buf[idx++] = instance;
+ PUSH_DATA(buf, idx, algoname, strlen(algoname)); /* without trailing NUL */
+ PUSH_DATA(buf, idx, _rand, 16);
+ PUSH_DATA(buf, idx, amf, 2);
+ PUSH_DATA(buf, idx, sqn, 6);
+ PUSH_DATA(buf, idx, k, k_len_bytes);
+ memset(buf+idx, 0, 32-k_len_bytes); idx += 32-k_len_bytes;
+ buf[idx++] = 0x1f;
+ memset(buf+idx, 0, 38); idx += 38;
+ buf[idx++] = 0x80;
+ memset(buf+idx, 0, 64); idx += 64;
+ OSMO_ASSERT(idx == 200);
+
+ for (unsigned int i = 0; i < keccac_iterations; i++)
+ Keccak_f_64((uint64_t *) buf);
+}
+
+/**
+ * tuak_f1 - TUAK f1 algorithm
+ * @opc: OPc = 256-bit value derived from OP and K
+ * @k: K = 128-bit or 256-bit subscriber key
+ * @_rand: RAND = 128-bit random challenge
+ * @sqn: SQN = 48-bit sequence number
+ * @amf: AMF = 16-bit authentication management field
+ * @mac_a: Buffer for MAC-A = 64/128/256-bit network authentication code
+ * Returns: 0 on success, -1 on failure
+ */
+int tuak_f1(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes, const uint8_t *_rand,
+ const uint8_t *sqn, const uint8_t *amf, uint8_t *mac_a, uint8_t mac_a_len_bytes,
+ unsigned int keccac_iterations)
+{
+ uint8_t buf[200];
+ uint8_t instance = 0x00;
+
+ switch (mac_a_len_bytes) {
+ case 8:
+ instance |= 0x08;
+ break;
+ case 16:
+ instance |= 0x10;
+ break;
+ case 32:
+ instance |= 0x20;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ switch (k_len_bytes) {
+ case 16:
+ break;
+ case 32:
+ instance |= 0x01;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ tuak_core(buf, opc, instance, _rand, amf, sqn, k, k_len_bytes, keccac_iterations);
+
+ memcpy_reverse(mac_a, buf, mac_a_len_bytes);
+
+ return 0;
+}
+
+/**
+ * tuak_f1star - TUAK f1* algorithm
+ * @opc: OPc = 256-bit value derived from OP and K
+ * @k: K = 128-bit or 256-bit subscriber key
+ * @_rand: RAND = 128-bit random challenge
+ * @sqn: SQN = 48-bit sequence number
+ * @amf: AMF = 16-bit authentication management field
+ * @mac_s: Buffer for MAC-S = 64/128/256-bit resync authentication code
+ * Returns: 0 on success, -1 on failure
+ */
+int tuak_f1star(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes, const uint8_t *_rand,
+ const uint8_t *sqn, const uint8_t *amf, uint8_t *mac_s, uint8_t mac_s_len_bytes,
+ unsigned int keccac_iterations)
+{
+ uint8_t buf[200];
+ uint8_t instance = 0x80;
+
+ switch (mac_s_len_bytes) {
+ case 8:
+ instance |= 0x08;
+ break;
+ case 16:
+ instance |= 0x10;
+ break;
+ case 32:
+ instance |= 0x20;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ switch (k_len_bytes) {
+ case 16:
+ break;
+ case 32:
+ instance |= 0x01;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ tuak_core(buf, opc, instance, _rand, amf, sqn, k, k_len_bytes, keccac_iterations);
+
+ memcpy_reverse(mac_s, buf, mac_s_len_bytes);
+
+ return 0;
+}
+
+/**
+ * tuak_f2345 - TUAK f2, f3, f4, f5, algorithms
+ * @opc: OPc = 256-bit value derived from OP and K
+ * @k: K = 128/256-bit subscriber key
+ * @_rand: RAND = 128-bit random challenge
+ * @res: Buffer for RES = 32/64/128/256-bit signed response (f2), or %NULL
+ * @ck: Buffer for CK = 128/256-bit confidentiality key (f3), or %NULL
+ * @ik: Buffer for IK = 128/256-bit integrity key (f4), or %NULL
+ * @ak: Buffer for AK = 48-bit anonymity key (f5), or %NULL
+ * Returns: 0 on success, -1 on failure
+ */
+int tuak_f2345(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes,
+ const uint8_t *_rand, uint8_t *res, uint8_t res_len_bytes,
+ uint8_t *ck, uint8_t ck_len_bytes,
+ uint8_t *ik, uint8_t ik_len_bytes, uint8_t *ak, unsigned int keccac_iterations)
+{
+ uint8_t buf[200];
+ uint8_t instance = 0x40;
+
+ switch (res_len_bytes) {
+ case 4:
+ break;
+ case 8:
+ instance |= 0x08;
+ break;
+ case 16:
+ instance |= 0x10;
+ break;
+ case 32:
+ instance |= 0x20;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ switch (ck_len_bytes) {
+ case 16:
+ break;
+ case 32:
+ instance |= 0x04;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ switch (ik_len_bytes) {
+ case 16:
+ break;
+ case 32:
+ instance |= 0x02;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ switch (k_len_bytes) {
+ case 16:
+ break;
+ case 32:
+ instance |= 0x01;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ tuak_core(buf, opc, instance, _rand, zero16, zero16, k, k_len_bytes, keccac_iterations);
+
+ if (res)
+ memcpy_reverse(res, buf, res_len_bytes);
+
+ if (ck)
+ memcpy_reverse(ck, buf + 32, ck_len_bytes);
+
+ if (ik)
+ memcpy_reverse(ik, buf + 64, ik_len_bytes);
+
+ if (ak)
+ memcpy_reverse(ak, buf + 96, 6);
+
+ return 0;
+}
+
+/**
+ * tuak_f5star - TUAK f5* algorithm
+ * @opc: OPc = 256-bit value derived from OP and K
+ * @k: K = 128/256-bit subscriber key
+ * @_rand: RAND = 128-bit random challenge
+ * @ak: Buffer for AK = 48-bit anonymity key (f5)
+ * Returns: 0 on success, -1 on failure
+ */
+int tuak_f5star(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes,
+ const uint8_t *_rand, uint8_t *ak, unsigned int keccac_iterations)
+{
+ uint8_t buf[200];
+ uint8_t instance = 0xc0;
+
+ switch (k_len_bytes) {
+ case 16:
+ break;
+ case 32:
+ instance += 1;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ tuak_core(buf, opc, instance, _rand, zero16, zero16, k, k_len_bytes, keccac_iterations);
+
+ memcpy_reverse(ak, buf + 96, 6);
+
+ return 0;
+}
+
+/**
+ * tuak_generate - Generate AKA AUTN,IK,CK,RES
+ * @opc: OPc = 256-bit operator variant algorithm configuration field (encr.)
+ * @amf: AMF = 16-bit authentication management field
+ * @k: K = 128/256-bit subscriber key
+ * @sqn: SQN = 48-bit sequence number
+ * @_rand: RAND = 128-bit random challenge
+ * @autn: Buffer for AUTN = 128-bit authentication token
+ * @ik: Buffer for IK = 128/256-bit integrity key (f4), or %NULL
+ * @ck: Buffer for CK = 128/256-bit confidentiality key (f3), or %NULL
+ * @res: Buffer for RES = 32/64/128-bit signed response (f2), or %NULL
+ * @res_len: Max length for res; set to used length or 0 on failure
+ */
+void tuak_generate(const uint8_t *opc, const uint8_t *amf, const uint8_t *k, uint8_t k_len_bytes,
+ const uint8_t *sqn, const uint8_t *_rand, uint8_t *autn, uint8_t *ik,
+ uint8_t *ck, uint8_t *res, size_t *res_len)
+{
+ int i;
+ uint8_t mac_a[8], ak[6];
+
+ if (*res_len < 4) {
+ *res_len = 0;
+ return;
+ }
+ if (tuak_f1(opc, k, k_len_bytes, _rand, sqn, amf, mac_a, sizeof(mac_a), g_keccak_iterations) ||
+ tuak_f2345(opc, k, k_len_bytes, _rand, res, *res_len, ck, 16, ik, 16, ak, g_keccak_iterations)) {
+ *res_len = 0;
+ return;
+ }
+
+ /* AUTN = (SQN ^ AK) || AMF || MAC */
+ for (i = 0; i < 6; i++)
+ autn[i] = sqn[i] ^ ak[i];
+ memcpy(autn + 6, amf, 2);
+ memcpy(autn + 8, mac_a, 8);
+}
+
+
+/**
+ * tuak_auts - Milenage AUTS validation
+ * @opc: OPc = 256-bit operator variant algorithm configuration field (encr.)
+ * @k: K = 128/256-bit subscriber key
+ * @_rand: RAND = 128-bit random challenge
+ * @auts: AUTS = 112-bit authentication token from client
+ * @sqn: Buffer for SQN = 48-bit sequence number
+ * Returns: 0 = success (sqn filled), -1 on failure
+ */
+int tuak_auts(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes,
+ const uint8_t *_rand, const uint8_t *auts, uint8_t *sqn)
+{
+ uint8_t amf[2] = { 0x00, 0x00 }; /* TS 33.102 v7.0.0, 6.3.3 */
+ uint8_t ak[6], mac_s[8];
+ int i;
+
+ if (tuak_f5star(opc, k, k_len_bytes, _rand, ak, g_keccak_iterations))
+ return -1;
+ for (i = 0; i < 6; i++)
+ sqn[i] = auts[i] ^ ak[i];
+ if (tuak_f1star(opc, k, k_len_bytes, _rand, sqn, amf, mac_s, 8, g_keccak_iterations) ||
+ memcmp(mac_s, auts + 6, 8) != 0)
+ return -1;
+ return 0;
+}
+
+int tuak_opc_gen(uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes, const uint8_t *op)
+{
+ uint8_t buf[200];
+ uint8_t instance;
+
+ switch (k_len_bytes) {
+ case 16:
+ instance = 0x00;
+ break;
+ case 32:
+ instance = 0x01;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ tuak_core(buf, op, instance, zero16, zero16, zero16, k, k_len_bytes, g_keccak_iterations);
+
+ memcpy_reverse(opc, buf, 32);
+
+ return 0;
+}
diff --git a/src/gsm/tuak/tuak.h b/src/gsm/tuak/tuak.h
new file mode 100644
index 0000000..1a80822
--- /dev/null
+++ b/src/gsm/tuak/tuak.h
@@ -0,0 +1,33 @@
+#pragma once
+#include <stdint.h>
+
+/* low-level functions */
+
+int tuak_f1(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes, const uint8_t *_rand,
+ const uint8_t *sqn, const uint8_t *amf, uint8_t *mac_a, uint8_t mac_a_len_bytes,
+ unsigned int keccac_iterations);
+
+int tuak_f1star(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes, const uint8_t *_rand,
+ const uint8_t *sqn, const uint8_t *amf, uint8_t *mac_s, uint8_t mac_s_len_bytes,
+ unsigned int keccac_iterations);
+
+int tuak_f2345(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes,
+ const uint8_t *_rand, uint8_t *res, uint8_t res_len_bytes,
+ uint8_t *ck, uint8_t ck_len_bytes,
+ uint8_t *ik, uint8_t ik_len_bytes, uint8_t *ak, unsigned int keccac_iterations);
+
+int tuak_f5star(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes,
+ const uint8_t *_rand, uint8_t *ak, unsigned int keccac_iterations);
+
+/* high-level API */
+
+void tuak_set_keccak_iterations(unsigned int i);
+
+void tuak_generate(const uint8_t *opc, const uint8_t *amf, const uint8_t *k, uint8_t k_len_bytes,
+ const uint8_t *sqn, const uint8_t *_rand, uint8_t *autn, uint8_t *ik,
+ uint8_t *ck, uint8_t *res, size_t *res_len);
+
+int tuak_auts(const uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes,
+ const uint8_t *_rand, const uint8_t *auts, uint8_t *sqn);
+
+int tuak_opc_gen(uint8_t *opc, const uint8_t *k, uint8_t k_len_bytes, const uint8_t *op);
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c6027a9..0f63fe0 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -10,7 +10,8 @@
check_PROGRAMS = timer/timer_test sms/sms_test ussd/ussd_test \
bits/bitrev_test a5/a5_test \
- conv/conv_test auth/milenage_test lapd/lapd_test \
+ conv/conv_test auth/milenage_test auth/tuak_test \
+ lapd/lapd_test \
gsm0808/gsm0808_test gsm0408/gsm0408_test \
gprs/gprs_test kasumi/kasumi_test gea/gea_test \
logging/logging_test codec/codec_test \
@@ -115,6 +116,10 @@
auth_milenage_test_SOURCES = auth/milenage_test.c
auth_milenage_test_LDADD = $(top_builddir)/src/gsm/libosmogsm.la $(LDADD)
+auth_tuak_test_SOURCES = auth/tuak_test.c
+auth_tuak_test_LDADD = $(top_builddir)/src/gsm/libgsmint.la $(LDADD)
+auth_tuak_test_CPPFLAGS = $(CPPFLAGS) -I$(top_srcdir)/src
+
auth_xor2g_test_SOURCES = auth/xor2g_test.c
auth_xor2g_test_LDADD = $(top_builddir)/src/gsm/libosmogsm.la $(LDADD)
@@ -393,6 +398,7 @@
timer/timer_test.ok sms/sms_test.ok ussd/ussd_test.ok \
bits/bitrev_test.ok a5/a5_test.ok \
conv/conv_test.ok auth/milenage_test.ok ctrl/ctrl_test.ok \
+ auth/milenage_test.ok \
auth/xor2g_test.ok \
lapd/lapd_test.ok \
gsm0408/gsm0408_test.ok gsm0408/gsm0408_test.err \
@@ -535,6 +541,8 @@
>$(srcdir)/ussd/ussd_test.ok
auth/milenage_test \
>$(srcdir)/auth/milenage_test.ok
+ auth/tuak_test \
+ >$(srcdir)/auth/tuak_test.ok
comp128/comp128_test \
>$(srcdir)/comp128/comp128_test.ok
lapd/lapd_test \
diff --git a/tests/auth/tuak_test.ok b/tests/auth/tuak_test.ok
new file mode 100644
index 0000000..976fb59
--- /dev/null
+++ b/tests/auth/tuak_test.ok
@@ -0,0 +1,48 @@
+==> TS 35.233 Section 6.3 Test Set 1
+ TOPc: bd04d9530e87513c5d837ac2ad954623a8e2330c115305a73eb45d1f40cccbff
+ MAC_A: f9a54e6aeaa8618d
+ MAC_S: e94b4dc6c7297df3
+ RES: 657acd64
+ CK: d71a1e5c6caffe986a26f783e5c78be1
+ IK: be849fa2564f869aecee6f62d4337e72
+ AK: 719f1e9b9054
+==> TS 35.233 Section 6.4 Test Set 2
+ TOPc: 305425427e18c503c8a4b294ea72c95d0c36c6c6b29d0c65de5974d5977f8524
+ MAC_A: c0b8c2d4148ec7aa5f1d78a97e4d1d58
+ MAC_S: ef81af7290f7842c6ceafa537fa0745b
+ RES: e9d749dc4eea0035
+ CK: a4cb6f6529ab17f8337f27baa8234d47
+ IK: 2274155ccf4199d5e2abcbf621907f90
+ AK: 480a9345cc1e
+==> TS 35.233 Section 6.5 Test Set 3
+ TOPc: 305425427e18c503c8a4b294ea72c95d0c36c6c6b29d0c65de5974d5977f8524
+ MAC_A: d97b75a1776065271b1e212bc3b1bf173f438b21e6c64a55a96c372e085e5cc5
+ MAC_S: 427bbf07c6e3a86c54f8c5216499f3909a6fd4a164c9fe235b1550258111b821
+ RES: 07021c73e7635c7d
+ CK: 4d59ac796834eb85d11fa148a5058c3c
+ IK: 126d47500136fdc5ddfd14f19ebf16749ce4b6435323fbb5715a3a796a6082bd
+ AK: 1d6622c4e59a
+==> TS 35.233 Section 6.6 Test Set 4
+ TOPc: 2bc16eb657a68e1f446f08f57c0efb1d493527a2e652ce281eb6ca0e4487760a
+ MAC_A: 749214087958dd8f58bfcdf869d8ae3f
+ MAC_S: 619e865afe80e382aee13063f9dfb56d
+ RES: 4041ce438e3e38e8aa96562eed83ac43
+ CK: 3e3bc01bea0cd914c4c2c83ce2d92757
+ IK: 666a8e6f577b1aa77b7fd53cebb8a3d6
+ AK: 1f880d005119
+==> TS 35.233 Section 6.7 Test Set 5
+ TOPc: 3c6052e41532a28a47aa3cbb89f223e8f3aaa976aecd48bc3e7d6165a55eff62
+ MAC_A: d7340dad02b4cb01
+ MAC_S: c6021e2e66accb15
+ RES: 84d89b41db1867ffd4c7ba1d82163f4d526a20fbae5418fbb526940b1eeb905c
+ CK: d419676afe5ab58c1d8bee0d43523a4d2f52ef0b31a4676a0c334427a988fe65
+ IK: 205533e505661b61d05cc0eac87818f4
+ AK: d7b3d2d4980a
+==> TS 35.233 Section 6.8 Test Set 6
+ TOPc: b04a66f26c62fcd6c82de22a179ab65506ecf47f56245cd149966cfa9cec7a51
+ MAC_A: 90d2289ed1ca1c3dbc2247bb480d431ac71d2e4a7677f6e997cfddb0cbad88b7
+ MAC_S: 427355dbac30e825063aba61b556e87583abac638e3ab01c4c884ad9d458dc2f
+ RES: d67e6e64590d22eecba7324afa4af4460c93f01b24506d6e12047d789a94c867
+ CK: ede57edfc57cdffe1aae75066a1b7479bbc3837438e88d37a801cccc9f972b89
+ IK: 48ed9299126e5057402fe01f9201cf25249f9c5c0ed2afcf084755daff1d3999
+ AK: 6aae8d18c448
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33094
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib905b8d8bdf248e8299bf50666ee1bca8298433d
Gerrit-Change-Number: 33094
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
1
0
[M] Change in libosmocore[master]: osmo-auc-gen: Convert over to osmo_auth_gen_vec*2 API
by pespin 30 May '23
by pespin 30 May '23
30 May '23
Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/33090 )
Change subject: osmo-auc-gen: Convert over to osmo_auth_gen_vec*2 API
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File utils/osmo-auc-gen.c:
https://gerrit.osmocom.org/c/libosmocore/+/33090/comment/2c53e989_fae4bc9c
PS1, Line 117: /* 3GPP TS 33.102 6.3.7: "The authentication key (K) shall have a length of 128 bits or 256 bits." */
why is this comment added here?
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33090
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iffed02ec0fc9c9a996da6f218d67314e381cbb29
Gerrit-Change-Number: 33090
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Tue, 30 May 2023 13:46:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
1
0
[S] Change in libosmocore[master]: libosmogsm: Ensure MILENAGE + XOR-3G K length is 128 bit
by pespin 30 May '23
by pespin 30 May '23
30 May '23
Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/33089 )
Change subject: libosmogsm: Ensure MILENAGE + XOR-3G K length is 128 bit
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33089
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iae8b93cf059abda087101cdd01bbcf92d355753b
Gerrit-Change-Number: 33089
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Tue, 30 May 2023 13:44:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
1
0
[S] Change in libosmocore[master]: libosmogsm: Add OSMO_ASSERT() to ensure correct algorithm
by pespin 30 May '23
by pespin 30 May '23
30 May '23
Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/33088 )
Change subject: libosmogsm: Add OSMO_ASSERT() to ensure correct algorithm
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33088
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I22b504b6cffb4999b2f14772fffcb2f6f02c198c
Gerrit-Change-Number: 33088
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Tue, 30 May 2023 13:44:18 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
1
0