aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/aesni/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/aesni/buffer.h')
-rw-r--r--include/aesni/buffer.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/aesni/buffer.h b/include/aesni/buffer.h
new file mode 100644
index 0000000..f3c845d
--- /dev/null
+++ b/include/aesni/buffer.h
@@ -0,0 +1,20 @@
+/**
+ * \file
+ * \author Egor Tensin <Egor.Tensin@gmail.com>
+ * \date 2015
+ * \copyright This file is licensed under the terms of the MIT License.
+ * See LICENSE.txt for details.
+ */
+
+#pragma once
+
+#include <stdio.h>
+
+size_t aes128ecb_encrypt_buffer(const unsigned char* src,
+ size_t src_size,
+ unsigned char* dest,
+ Aes128KeySchedule* key_schedule);
+size_t aes128ecb_decrypt_buffer(const unsigned char* src,
+ size_t src_size,
+ unsigned char* dest,
+ Aes128KeySchedule* inverted_schedule);