From 2f040d8b25698853f00d5a6ceb99c7a08e376dbf Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 21 Jul 2026 15:41:27 +0200 Subject: remove some more duplication and the Doxygen "comments" --- aesxx/include/aesxx/aes.hpp | 12 ++++++------ aesxx/include/aesxx/data.hpp | 4 ---- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'aesxx/include') 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(aes128::Block& dest, std::string_view src) { template <> inline std::string to_string(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(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(aes192::Block& dest, std::string_view src) { template <> inline std::string to_string(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(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(aes256::Block& dest, std::string_view src) { template <> inline std::string to_string(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(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); } -- cgit v1.3