summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/comp128.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-04-21 17:12:40 +0200
committerHarald Welte <laforge@gnumonks.org>2016-04-22 15:10:55 +0200
commit1f9d8183be276fa770b106d1e8f9719386a9515a (patch)
tree4d845b5c1d6ace7c3b65269917d53bfa0ecdfce9 /include/osmocom/gsm/comp128.h
parentfdb3d8ce7898801d5b18d446a17ccc0f09451d4f (diff)
Deprecate comp128
Mark function as deprecated to discourage its usage: people should use generic API in osmocom/crypt/auth.h
Diffstat (limited to 'include/osmocom/gsm/comp128.h')
-rw-r--r--include/osmocom/gsm/comp128.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/osmocom/gsm/comp128.h b/include/osmocom/gsm/comp128.h
index 33b997aa..8ff76b10 100644
--- a/include/osmocom/gsm/comp128.h
+++ b/include/osmocom/gsm/comp128.h
@@ -8,11 +8,15 @@
#include <stdint.h>
+#include <osmocom/core/defs.h>
+
/*
- * Performs the COMP128 algorithm (used as A3/A8)
+ * Performs the COMP128v1 algorithm (used as A3/A8)
* ki : uint8_t [16]
* srand : uint8_t [16]
* sres : uint8_t [4]
* kc : uint8_t [8]
*/
-void comp128(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc);
+void comp128v1(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc);
+
+void comp128(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc) OSMO_DEPRECATED("Use generic API from osmocom/crypt/auth.h instead");