Change in libosmocore[master]: add fixme: enforce 8 byte length of Kc

neels gerrit-no-reply at lists.osmocom.org
Tue Jun 29 20:37:14 UTC 2021


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


Change subject: add fixme: enforce 8 byte length of Kc
......................................................................

add fixme: enforce 8 byte length of Kc

Change-Id: I57efb0a24cb71b365189eccb5088b130fad15093
---
M src/gsm/gsm0808_utils.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/07/24807/1

diff --git a/src/gsm/gsm0808_utils.c b/src/gsm/gsm0808_utils.c
index b5b8431..78cbe92 100644
--- a/src/gsm/gsm0808_utils.c
+++ b/src/gsm/gsm0808_utils.c
@@ -721,6 +721,8 @@
 	}
 
 	msgb_put_u8(msg, perm_algo);
+	/* FIXME: 48.008 3.2.2.10 Encryption Information says:
+	 * "When present, the key shall be 8 octets long." */
 	ptr = msgb_put(msg, ei->key_len);
 	memcpy(ptr, ei->key, ei->key_len);
 
@@ -760,6 +762,8 @@
 	}
 	ei->perm_algo_len = perm_algo_len;
 
+	/* FIXME: 48.008 3.2.2.10 Encryption Information says:
+	 * "When present, the key shall be 8 octets long." */
 	ei->key_len = len - 1;
 	memcpy(ei->key, elem, ei->key_len);
 	elem+=ei->key_len;

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I57efb0a24cb71b365189eccb5088b130fad15093
Gerrit-Change-Number: 24807
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210629/f2cffc78/attachment.htm>


More information about the gerrit-log mailing list