diff options
Diffstat (limited to 'include/aesni/box.h')
-rw-r--r-- | include/aesni/box.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdlib.h> + #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 |