From 3716501690fb4e1ddd1af385b4d012cce2d107ac Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 19 Jun 2015 09:42:55 +0300 Subject: add buffer encryption to "boxes" --- include/aesni/box.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include/aesni/box.h') diff --git a/include/aesni/box.h b/include/aesni/box.h index 3dfbc9e..12daa2e 100644 --- a/include/aesni/box.h +++ b/include/aesni/box.h @@ -11,6 +11,8 @@ #include "box_data.h" #include "error.h" +#include + #ifdef __cplusplus extern "C" { @@ -36,6 +38,22 @@ AesNI_StatusCode aesni_box_decrypt_block( AesNI_BoxBlock* plaintext, AesNI_ErrorDetails* err_details); +AesNI_StatusCode aesni_box_encrypt_buffer( + AesNI_Box* box, + const void* src, + size_t src_size, + void* dest, + size_t* dest_size, + AesNI_ErrorDetails* err_details); + +AesNI_StatusCode aesni_box_decrypt_buffer( + AesNI_Box* box, + const void* src, + size_t src_size, + void* dest, + size_t* dest_size, + AesNI_ErrorDetails* err_details); + #ifdef __cplusplus } #endif -- cgit v1.2.3