aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cxx/include/aesxx/aes.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-05-03 20:47:15 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-05-03 20:47:15 +0300
commit786480850ac3d16c62ee2abfe410c4e00d16f70b (patch)
tree2026f57a1455381083c487730474b5d171f83ea4 /cxx/include/aesxx/aes.hpp
parentcommon.cmake: bugfix & refactoring (diff)
downloadaes-tools-786480850ac3d16c62ee2abfe410c4e00d16f70b.tar.gz
aes-tools-786480850ac3d16c62ee2abfe410c4e00d16f70b.zip
code style
Diffstat (limited to '')
-rw-r--r--cxx/include/aesxx/aes.hpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/cxx/include/aesxx/aes.hpp b/cxx/include/aesxx/aes.hpp
index c85bd26..d1f68d2 100644
--- a/cxx/include/aesxx/aes.hpp
+++ b/cxx/include/aesxx/aes.hpp
@@ -42,37 +42,37 @@ namespace aes
template <>
void from_string<AES_AES128>(aes128::Block& dest, const char* src)
{
- aes_AES128_parse_block(&dest, src, ErrorDetailsThrowsInDestructor());
+ aes_AES128_parse_block(&dest, src, ErrorDetailsThrowsInDestructor{});
}
template <>
std::string to_string<AES_AES128>(const aes128::Block& src)
{
AES_AES128_BlockString str;
- aes_AES128_format_block(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES128_format_block(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>
std::string to_matrix_string<AES_AES128>(const aes128::Block& src)
{
AES_AES128_BlockMatrixString str;
- aes_AES128_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES128_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>
void from_string<AES_AES128>(aes128::Key& dest, const char* src)
{
- aes_AES128_parse_key(&dest, src, ErrorDetailsThrowsInDestructor());
+ aes_AES128_parse_key(&dest, src, ErrorDetailsThrowsInDestructor{});
}
template <>
std::string to_string<AES_AES128>(const aes128::Key& src)
{
AES_AES128_KeyString str;
- aes_AES128_format_key(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES128_format_key(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>
@@ -127,37 +127,37 @@ namespace aes
template <>
void from_string<AES_AES192>(aes192::Block& dest, const char* src)
{
- aes_AES192_parse_block(&dest, src, ErrorDetailsThrowsInDestructor());
+ aes_AES192_parse_block(&dest, src, ErrorDetailsThrowsInDestructor{});
}
template <>
std::string to_string<AES_AES192>(const aes192::Block& src)
{
AES_AES192_BlockString str;
- aes_AES192_format_block(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES192_format_block(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>
std::string to_matrix_string<AES_AES192>(const aes192::Block& src)
{
AES_AES192_BlockMatrixString str;
- aes_AES192_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES192_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>
void from_string<AES_AES192>(aes192::Key& dest, const char* src)
{
- aes_AES192_parse_key(&dest, src, ErrorDetailsThrowsInDestructor());
+ aes_AES192_parse_key(&dest, src, ErrorDetailsThrowsInDestructor{});
}
template <>
std::string to_string<AES_AES192>(const aes192::Key& src)
{
AES_AES192_KeyString str;
- aes_AES192_format_key(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES192_format_key(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>
@@ -212,37 +212,37 @@ namespace aes
template <>
void from_string<AES_AES256>(aes256::Block& dest, const char* src)
{
- aes_AES256_parse_block(&dest, src, ErrorDetailsThrowsInDestructor());
+ aes_AES256_parse_block(&dest, src, ErrorDetailsThrowsInDestructor{});
}
template <>
std::string to_string<AES_AES256>(const aes256::Block& src)
{
AES_AES256_BlockString str;
- aes_AES256_format_block(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES256_format_block(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>
std::string to_matrix_string<AES_AES256>(const aes256::Block& src)
{
AES_AES256_BlockMatrixString str;
- aes_AES256_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES256_format_block_as_matrix(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>
void from_string<AES_AES256>(aes256::Key& dest, const char* src)
{
- aes_AES256_parse_key(&dest, src, ErrorDetailsThrowsInDestructor());
+ aes_AES256_parse_key(&dest, src, ErrorDetailsThrowsInDestructor{});
}
template <>
std::string to_string<AES_AES256>(const aes256::Key& src)
{
AES_AES256_KeyString str;
- aes_AES256_format_key(&str, &src, ErrorDetailsThrowsInDestructor());
- return { str.str };
+ aes_AES256_format_key(&str, &src, ErrorDetailsThrowsInDestructor{});
+ return {str.str};
}
template <>