aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cxx/include/aesxx/data.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cxx/include/aesxx/data.hpp')
-rw-r--r--cxx/include/aesxx/data.hpp20
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);
}
}