diff options
author | Max <msuraev@sysmocom.de> | 2017-08-28 10:38:59 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-08-30 09:09:39 +0000 |
commit | 483cdffeb8beab7d43c39e9d46a20bad03ff56ad (patch) | |
tree | 599bf4148c16feb1507da0fcd855deecda889613 | |
parent | 2066a42d5a46c0fe501a6036cb57b7255e955e7d (diff) |
Add define for supported a5 key length limit
Change-Id: I8ed0f1dbc31aaff22a685ceb3bd2f8db4d2f34fd
-rw-r--r-- | include/osmocom/crypt/auth.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/osmocom/crypt/auth.h b/include/osmocom/crypt/auth.h index 6d2c783d..2f2a8d33 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, @@ -42,7 +44,7 @@ struct osmo_sub_auth_data { uint64_t sqn_ms; /*!< sqn from AUTS (output value only) */ } umts; struct { - uint8_t ki[16]; /*!< secret key */ + uint8_t ki[OSMO_A5_MAX_KEY_LEN_BYTES]; /*!< secret key */ } gsm; } u; }; |