This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Max gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/3706 Add define for supported a5 key length limit Change-Id: I8ed0f1dbc31aaff22a685ceb3bd2f8db4d2f34fd --- M include/osmocom/crypt/auth.h 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/06/3706/1 diff --git a/include/osmocom/crypt/auth.h b/include/osmocom/crypt/auth.h index 2f88a3a..3555ee8 100644 --- a/include/osmocom/crypt/auth.h +++ b/include/osmocom/crypt/auth.h @@ -8,6 +8,8 @@ #include <osmocom/core/linuxlist.h> +#define OSMO_A5_MAX_KEY_LEN_BYTES (128/8) + /*! Authentication Type (GSM/UMTS) */ enum osmo_sub_auth_type { OSMO_AUTH_TYPE_NONE = 0x00, @@ -41,7 +43,7 @@ unsigned int ind; /*!< SQN slot, i.e. (SEQ << ind_bitlen) + ind */ } umts; struct { - uint8_t ki[16]; /*!< secret key */ + uint8_t ki[OSMO_A5_MAX_KEY_LEN_BYTES]; /*!< secret key */ } gsm; } u; }; -- To view, visit https://gerrit.osmocom.org/3706 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8ed0f1dbc31aaff22a685ceb3bd2f8db4d2f34fd Gerrit-PatchSet: 1 Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Owner: Max <msuraev at sysmocom.de>