Change in libosmocore[master]: utils/osmo-aka-verify: fix swapped CK/IK arguments

fixeria gerrit-no-reply at lists.osmocom.org
Sun Mar 21 21:39:41 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/23439 )


Change subject: utils/osmo-aka-verify: fix swapped CK/IK arguments
......................................................................

utils/osmo-aka-verify: fix swapped CK/IK arguments

The positions of arguments in the call to "milenage_check" do not
match the ordering of the parameters:

  * "ck" is passed to "ik"
  * "ik" is passed to "ck"

Let's simply reorder the arguments of milenage_check()
to match the ordering in milenage_f2345().

Change-Id: Ia003d3c9d88fb8f6740791583855a709b8639160
Fixes: CID#220324
---
M utils/osmo-aka-verify.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/39/23439/1

diff --git a/utils/osmo-aka-verify.c b/utils/osmo-aka-verify.c
index 5134d79..0caeab3 100644
--- a/utils/osmo-aka-verify.c
+++ b/utils/osmo-aka-verify.c
@@ -21,7 +21,7 @@
 		   uint8_t *res, uint8_t *ck, uint8_t *ik, uint8_t *ak, uint8_t *akstar);
 
 static int milenage_check(const uint8_t *opc, const uint8_t *k, const uint8_t *sqn, const uint8_t *_rand,
-			  const uint8_t *autn, uint8_t *ik, uint8_t *ck, uint8_t *res, size_t *res_len,
+			  const uint8_t *autn, uint8_t *ck, uint8_t *ik, uint8_t *res, size_t *res_len,
 			  uint8_t *auts)
 {
 	int i;

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/23439
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ia003d3c9d88fb8f6740791583855a709b8639160
Gerrit-Change-Number: 23439
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210321/fd75f9bb/attachment.htm>


More information about the gerrit-log mailing list