aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cxx/include/aesnixx
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 01:21:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 01:21:19 +0300
commit03c815ff0a3fad7b69d29175bc1b9df1b2cdfef6 (patch)
tree394e28f2cea095d97cdf1d1807e1e50c609dc99f /cxx/include/aesnixx
parentexamples: output update (diff)
downloadaes-tools-03c815ff0a3fad7b69d29175bc1b9df1b2cdfef6.tar.gz
aes-tools-03c815ff0a3fad7b69d29175bc1b9df1b2cdfef6.zip
add more block arithmetic functions
Diffstat (limited to 'cxx/include/aesnixx')
-rw-r--r--cxx/include/aesnixx/data.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cxx/include/aesnixx/data.hpp b/cxx/include/aesnixx/data.hpp
index bd7e9bd..98b5c98 100644
--- a/cxx/include/aesnixx/data.hpp
+++ b/cxx/include/aesnixx/data.hpp
@@ -45,4 +45,14 @@ namespace aesni
{
return aesni_xor_block128(a, b);
}
+
+ inline Block128 reverse_byte_order(Block128& block)
+ {
+ return aesni_reverse_byte_order_block128(block);
+ }
+
+ inline Block128 inc(Block128& block)
+ {
+ return aesni_inc_block128(block);
+ }
}