aboutsummaryrefslogtreecommitdiffstats
path: root/libosmocore/include/osmocore/comp128.h
diff options
context:
space:
mode:
Diffstat (limited to 'libosmocore/include/osmocore/comp128.h')
-rw-r--r--libosmocore/include/osmocore/comp128.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libosmocore/include/osmocore/comp128.h b/libosmocore/include/osmocore/comp128.h
new file mode 100644
index 000000000..691ade54b
--- /dev/null
+++ b/libosmocore/include/osmocore/comp128.h
@@ -0,0 +1,22 @@
+/*
+ * COMP128 header
+ *
+ * See comp128.c for details
+ */
+
+#ifndef __COMP128_H__
+#define __COMP128_H__
+
+#include <sys/types.h>
+
+/*
+ * Performs the COMP128 algorithm (used as A3/A8)
+ * ki : u_int8_t [16]
+ * srand : u_int8_t [16]
+ * sres : u_int8_t [4]
+ * kc : u_int8_t [8]
+ */
+void comp128(u_int8_t *ki, u_int8_t *srand, u_int8_t *sres, u_int8_t *kc);
+
+#endif /* __COMP128_H__ */
+