aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/crypt
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-06-30 19:50:14 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-30 19:50:14 +0200
commite335b91ccd6175f43d8bb0c2ea4811e49cb4d95b (patch)
treeb399365d992b69c061fa81273e72202cbc311232 /include/osmocom/crypt
parentb9ce51c5fd9773694856802a175efdd9b37a2242 (diff)
GPRS: Add 'input' generator functions for GPRS cipher algorithm
Diffstat (limited to 'include/osmocom/crypt')
-rw-r--r--include/osmocom/crypt/gprs_cipher.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/crypt/gprs_cipher.h b/include/osmocom/crypt/gprs_cipher.h
index 16560376..3e514ec7 100644
--- a/include/osmocom/crypt/gprs_cipher.h
+++ b/include/osmocom/crypt/gprs_cipher.h
@@ -45,4 +45,10 @@ int gprs_cipher_run(uint8_t *out, uint16_t len, enum gprs_ciph_algo algo,
/* Do we have an implementation for this cipher? */
int gprs_cipher_supported(enum gprs_ciph_algo algo);
+/* GSM TS 04.64 / Section A.2.1 : Generation of 'input' */
+uint32_t gprs_cipher_gen_input_ui(uint32_t iov_ui, uint8_t sapi, uint32_t lfn, uint32_t oc);
+
+/* GSM TS 04.64 / Section A.2.1 : Generation of 'input' */
+uint32_t gprs_cipher_gen_input_i(uint32_t iov_i, uint32_t lfn, uint32_t oc);
+
#endif /* _GPRS_CIPHER_H */