diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile.am | 2 | ||||
-rw-r--r-- | include/osmocom/crypt/gprs_cipher.h | 2 | ||||
-rw-r--r-- | include/osmocom/gsm/gea.h | 17 |
3 files changed, 20 insertions, 1 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 7aa9c273..479e665d 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -131,7 +131,7 @@ endif noinst_HEADERS = \ osmocom/core/timer_compat.h \ - osmocom/gsm/kasumi.h + osmocom/gsm/kasumi.h osmocom/gsm/gea.h osmocom/core/bit%gen.h: osmocom/core/bitXXgen.h.tpl $(AM_V_GEN)$(MKDIR_P) $(dir $@) diff --git a/include/osmocom/crypt/gprs_cipher.h b/include/osmocom/crypt/gprs_cipher.h index d2425955..c302f10b 100644 --- a/include/osmocom/crypt/gprs_cipher.h +++ b/include/osmocom/crypt/gprs_cipher.h @@ -3,6 +3,8 @@ #include <osmocom/core/linuxlist.h> #include <osmocom/core/utils.h> +#include <stdint.h> + #define GSM0464_CIPH_MAX_BLOCK 1523 /* 3GPP TS 24.008 ยง 10.5.5.3 */ diff --git a/include/osmocom/gsm/gea.h b/include/osmocom/gsm/gea.h new file mode 100644 index 00000000..3051101d --- /dev/null +++ b/include/osmocom/gsm/gea.h @@ -0,0 +1,17 @@ +/* + * GEA3 header + * + * See gea.c for details + */ + +#pragma once + +#include <osmocom/crypt/gprs_cipher.h> + +#include <stdint.h> + +int gea3(uint8_t *out, uint16_t len, uint8_t *kc, uint32_t iv, + enum gprs_cipher_direction direct); + +int gea4(uint8_t *out, uint16_t len, uint8_t *kc, uint32_t iv, + enum gprs_cipher_direction direct); |