diff options
| author | Egor Tensin <egor@tensin.name> | 2026-07-21 15:41:27 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-07-21 15:41:27 +0200 |
| commit | 2f040d8b25698853f00d5a6ceb99c7a08e376dbf (patch) | |
| tree | 077952a7378b260598d4279d56a8e5b7579d05af /aesxx/include | |
| parent | fix function names (diff) | |
| download | aes-tools-2f040d8b25698853f00d5a6ceb99c7a08e376dbf.tar.gz aes-tools-2f040d8b25698853f00d5a6ceb99c7a08e376dbf.zip | |
remove some more duplication and the Doxygen "comments"
Diffstat (limited to 'aesxx/include')
| -rw-r--r-- | aesxx/include/aesxx/aes.hpp | 12 | ||||
| -rw-r--r-- | aesxx/include/aesxx/data.hpp | 4 |
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); } |
