aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/aesni
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 01:31:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 01:31:25 +0300
commit433df6f53252a5f4e8b97f1d905ba37928145a96 (patch)
treeba387f6ec6a83a9652cf509210a310cfae9dd1bf /include/aesni
parentrespect the generic interface in CTR functions (diff)
downloadaes-tools-433df6f53252a5f4e8b97f1d905ba37928145a96.tar.gz
aes-tools-433df6f53252a5f4e8b97f1d905ba37928145a96.zip
add CTR mode to "boxes"
Diffstat (limited to '')
-rw-r--r--include/aesni/box_data.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/aesni/box_data.h b/include/aesni/box_data.h
index 9acd901..ecd98a9 100644
--- a/include/aesni/box_data.h
+++ b/include/aesni/box_data.h
@@ -87,12 +87,17 @@ typedef AesNI_StatusCode (*AesNI_BoxXorBlock)(
const AesNI_BoxBlock*,
AesNI_ErrorDetails*);
+typedef AesNI_StatusCode (*AesNI_BoxIncCounter)(
+ AesNI_BoxBlock*,
+ AesNI_ErrorDetails*);
+
typedef struct
{
AesNI_BoxDeriveParams derive_params;
AesNI_BoxEncrypt encrypt;
AesNI_BoxDecrypt decrypt;
AesNI_BoxXorBlock xor_block;
+ AesNI_BoxIncCounter inc_counter;
}
AesNI_BoxAlgorithmInterface;