aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/aesni/box_data.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 09:42:55 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 09:42:55 +0300
commit3716501690fb4e1ddd1af385b4d012cce2d107ac (patch)
tree1b4f48b22cc980ba7cfb93bd5a83ec5e078157de /include/aesni/box_data.h
parentrefactoring (diff)
downloadaes-tools-3716501690fb4e1ddd1af385b4d012cce2d107ac.tar.gz
aes-tools-3716501690fb4e1ddd1af385b4d012cce2d107ac.zip
add buffer encryption to "boxes"
Diffstat (limited to 'include/aesni/box_data.h')
-rw-r--r--include/aesni/box_data.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/aesni/box_data.h b/include/aesni/box_data.h
index 327c9bc..9789f0f 100644
--- a/include/aesni/box_data.h
+++ b/include/aesni/box_data.h
@@ -97,6 +97,34 @@ typedef AesNI_StatusCode (*AesNI_BoxGetBlockSize)(
size_t*,
AesNI_ErrorDetails*);
+typedef AesNI_StatusCode (*AesNI_BoxStoreBlock)(
+ void*,
+ const AesNI_BoxBlock*,
+ AesNI_ErrorDetails*);
+
+typedef AesNI_StatusCode (*AesNI_BoxStorePartialBlock)(
+ void*,
+ const AesNI_BoxBlock*,
+ size_t,
+ AesNI_ErrorDetails*);
+
+typedef AesNI_StatusCode (*AesNI_BoxLoadBlock)(
+ AesNI_BoxBlock*,
+ const void*,
+ AesNI_ErrorDetails*);
+
+typedef AesNI_StatusCode (*AesNI_BoxLoadPartialBlock)(
+ AesNI_BoxBlock*,
+ const void*,
+ size_t,
+ AesNI_ErrorDetails*);
+
+typedef AesNI_StatusCode (*AesNI_BoxLoadBlockWithPadding)(
+ AesNI_BoxBlock*,
+ const void*,
+ size_t,
+ AesNI_ErrorDetails*);
+
typedef struct
{
AesNI_BoxDeriveParams derive_params;
@@ -105,6 +133,11 @@ typedef struct
AesNI_BoxXorBlock xor_block;
AesNI_BoxNextCounter next_counter;
AesNI_BoxGetBlockSize get_block_size;
+ AesNI_BoxStoreBlock store_block;
+ AesNI_BoxStorePartialBlock store_partial_block;
+ AesNI_BoxLoadBlock load_block;
+ AesNI_BoxLoadPartialBlock load_partial_block;
+ AesNI_BoxLoadBlockWithPadding load_block_with_padding;
}
AesNI_BoxAlgorithmInterface;