aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cxx/include/aesnixx/data.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-18 17:04:59 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-18 17:04:59 +0300
commitd7d598c27211cae8fb173270f0d2e5d815c8191d (patch)
tree8efd9194205ebd6db0e7f8327555e0577c636f31 /cxx/include/aesnixx/data.hpp
parenttest: README update (diff)
downloadaes-tools-d7d598c27211cae8fb173270f0d2e5d815c8191d.tar.gz
aes-tools-d7d598c27211cae8fb173270f0d2e5d815c8191d.zip
cxx: implement more stuff
Diffstat (limited to 'cxx/include/aesnixx/data.hpp')
-rw-r--r--cxx/include/aesnixx/data.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/cxx/include/aesnixx/data.hpp b/cxx/include/aesnixx/data.hpp
index 1eaac24..bd7e9bd 100644
--- a/cxx/include/aesnixx/data.hpp
+++ b/cxx/include/aesnixx/data.hpp
@@ -20,4 +20,29 @@ namespace aesni
{
dest = aesni_make_block128(hi3, hi2, lo1, lo0);
}
+
+ inline void load_block(Block128& dest, const void* src)
+ {
+ dest = aesni_load_block128(src);
+ }
+
+ inline void load_block_aligned(Block128& dest, const void* src)
+ {
+ dest = aesni_load_block128_aligned(src);
+ }
+
+ inline void store_block(void* dest, Block128& src)
+ {
+ aesni_store_block128(dest, src);
+ }
+
+ inline void store_block_aligned(void* dest, Block128& src)
+ {
+ aesni_store_block128_aligned(dest, src);
+ }
+
+ inline Block128 xor_block(Block128& a, Block128& b)
+ {
+ return aesni_xor_block128(a, b);
+ }
}