Merged the hostap_2.6 updates, and the Leap of Faith work, from the hostap_update...
[mech_eap.git] / libeap / src / crypto / aes_siv.h
diff --git a/libeap/src/crypto/aes_siv.h b/libeap/src/crypto/aes_siv.h
new file mode 100644 (file)
index 0000000..463cf65
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * AES SIV (RFC 5297)
+ * Copyright (c) 2013 Cozybit, Inc.
+ *
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
+ */
+
+#ifndef AES_SIV_H
+#define AES_SIV_H
+
+int aes_siv_encrypt(const u8 *key, const u8 *pw,
+                   size_t pwlen, size_t num_elem,
+                   const u8 *addr[], const size_t *len, u8 *out);
+int aes_siv_decrypt(const u8 *key, const u8 *iv_crypt, size_t iv_c_len,
+                   size_t num_elem, const u8 *addr[], const size_t *len,
+                   u8 *out);
+
+#endif /* AES_SIV_H */