diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-05-19 04:48:59 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-05-19 04:48:59 +0300 |
commit | f0393777befc4ff1024513dab3ab6bad0e7ec45f (patch) | |
tree | 97571103c522ff60f96a8fdde35a0bbee9532837 /cxx/include/aesxx/data.hpp | |
parent | rename the project (diff) | |
download | aes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.tar.gz aes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.zip |
'aesni' -> 'aes'
Diffstat (limited to '')
-rw-r--r-- | cxx/include/aesxx/data.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cxx/include/aesxx/data.hpp b/cxx/include/aesxx/data.hpp index f52fe3e..9b07343 100644 --- a/cxx/include/aesxx/data.hpp +++ b/cxx/include/aesxx/data.hpp @@ -12,47 +12,47 @@ #include <aes/all.h> -namespace aesni +namespace aes { - typedef AesNI_Block128 Block128; + typedef AES_Block128 Block128; inline void make_block(Block128& dest, int hi3, int hi2, int lo1, int lo0) { - dest = aesni_make_block128(hi3, hi2, lo1, lo0); + dest = aes_make_block128(hi3, hi2, lo1, lo0); } inline void load_block(Block128& dest, const void* src) { - dest = aesni_load_block128(src); + dest = aes_load_block128(src); } inline void load_block_aligned(Block128& dest, const void* src) { - dest = aesni_load_block128_aligned(src); + dest = aes_load_block128_aligned(src); } inline void store_block(void* dest, Block128& src) { - aesni_store_block128(dest, src); + aes_store_block128(dest, src); } inline void store_block_aligned(void* dest, Block128& src) { - aesni_store_block128_aligned(dest, src); + aes_store_block128_aligned(dest, src); } inline Block128 xor_blocks(Block128& a, Block128& b) { - return aesni_xor_block128(a, b); + return aes_xor_block128(a, b); } inline Block128 reverse_byte_order(Block128& block) { - return aesni_reverse_byte_order_block128(block); + return aes_reverse_byte_order_block128(block); } inline Block128 inc_block(Block128& block) { - return aesni_inc_block128(block); + return aes_inc_block128(block); } } |