aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/include
diff options
context:
space:
mode:
Diffstat (limited to 'aesxx/include')
-rw-r--r--aesxx/include/aesxx/aes.hpp12
-rw-r--r--aesxx/include/aesxx/data.hpp4
2 files changed, 6 insertions, 10 deletions
diff --git a/aesxx/include/aesxx/aes.hpp b/aesxx/include/aesxx/aes.hpp
index fb42cdf..38d98fa 100644
--- a/aesxx/include/aesxx/aes.hpp
+++ b/aesxx/include/aesxx/aes.hpp
@@ -39,14 +39,14 @@ inline void from_string<AES_AES128>(aes128::Block& dest, std::string_view src) {
template <>
inline std::string to_string<AES_AES128>(const aes128::Block& src) {
- AES128_BlockString str;
+ AES_BlockString str;
aes_format_block(&str, &src, ErrorDetailsThrowsInDestructor{});
return {str.str};
}
template <>
inline std::string to_matrix_string<AES_AES128>(const aes128::Block& src) {
- AES128_BlockMatrixString str;
+ AES_BlockMatrixString str;
aes_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor{});
return {str.str};
}
@@ -109,14 +109,14 @@ inline void from_string<AES_AES192>(aes192::Block& dest, std::string_view src) {
template <>
inline std::string to_string<AES_AES192>(const aes192::Block& src) {
- AES192_BlockString str;
+ AES_BlockString str;
aes_format_block(&str, &src, ErrorDetailsThrowsInDestructor{});
return {str.str};
}
template <>
inline std::string to_matrix_string<AES_AES192>(const aes192::Block& src) {
- AES192_BlockMatrixString str;
+ AES_BlockMatrixString str;
aes_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor{});
return {str.str};
}
@@ -179,14 +179,14 @@ inline void from_string<AES_AES256>(aes256::Block& dest, std::string_view src) {
template <>
inline std::string to_string<AES_AES256>(const aes256::Block& src) {
- AES256_BlockString str;
+ AES_BlockString str;
aes_format_block(&str, &src, ErrorDetailsThrowsInDestructor{});
return {str.str};
}
template <>
inline std::string to_matrix_string<AES_AES256>(const aes256::Block& src) {
- AES256_BlockMatrixString str;
+ AES_BlockMatrixString str;
aes_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor{});
return {str.str};
}
diff --git a/aesxx/include/aesxx/data.hpp b/aesxx/include/aesxx/data.hpp
index a93a781..8e4691d 100644
--- a/aesxx/include/aesxx/data.hpp
+++ b/aesxx/include/aesxx/data.hpp
@@ -37,10 +37,6 @@ inline Block128 xor_blocks(Block128& a, Block128& b) {
return aes_xor_blocks(a, b);
}
-inline Block128 reverse_byte_order(Block128& block) {
- return aes_reverse_byte_order_block(block);
-}
-
inline Block128 inc_block(Block128& block) {
return aes_inc_block(block);
}