summaryrefslogtreecommitdiffstats
path: root/src/gsm/milenage/aes.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-12-06 22:23:52 +0100
committerHarald Welte <laforge@gnumonks.org>2011-12-06 22:50:31 +0100
commit781bd5daeb98774628ccb7546d449704ea6f7330 (patch)
tree64a910b7b3679b1fbedaf21d6d119b1f7b87ba0e /src/gsm/milenage/aes.h
parentd82e0eb697abab4eb994800ab649bc36cca99a83 (diff)
Auth: Import milenage implementation from hostap (Jouni Malinen)
... and add integration into the osmo_auth core.
Diffstat (limited to 'src/gsm/milenage/aes.h')
-rw-r--r--src/gsm/milenage/aes.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/gsm/milenage/aes.h b/src/gsm/milenage/aes.h
new file mode 100644
index 00000000..ba384a9d
--- /dev/null
+++ b/src/gsm/milenage/aes.h
@@ -0,0 +1,27 @@
+/*
+ * AES functions
+ * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#ifndef AES_H
+#define AES_H
+
+#define AES_BLOCK_SIZE 16
+
+void * aes_encrypt_init(const u8 *key, size_t len);
+void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
+void aes_encrypt_deinit(void *ctx);
+void * aes_decrypt_init(const u8 *key, size_t len);
+void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
+void aes_decrypt_deinit(void *ctx);
+
+#endif /* AES_H */