From 786480850ac3d16c62ee2abfe410c4e00d16f70b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 3 May 2017 20:47:15 +0300 Subject: code style --- cxx/include/aesxx/box.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'cxx/include/aesxx/box.hpp') diff --git a/cxx/include/aesxx/box.hpp b/cxx/include/aesxx/box.hpp index ced4c28..3d9529b 100644 --- a/cxx/include/aesxx/box.hpp +++ b/cxx/include/aesxx/box.hpp @@ -30,7 +30,7 @@ namespace aes { AES_BoxKeyString str; aes_box_format_key( - &str, algorithm, &src, ErrorDetailsThrowsInDestructor()); + &str, algorithm, &src, ErrorDetailsThrowsInDestructor{}); return reinterpret_cast(&str); } @@ -38,7 +38,7 @@ namespace aes { AES_BoxBlockString str; aes_box_format_block( - &str, algorithm, &src, ErrorDetailsThrowsInDestructor()); + &str, algorithm, &src, ErrorDetailsThrowsInDestructor{}); return reinterpret_cast(&str); } @@ -48,7 +48,7 @@ namespace aes const char* src) { aes_box_parse_block(&dest, algorithm, src, - ErrorDetailsThrowsInDestructor()); + ErrorDetailsThrowsInDestructor{}); } static void parse_block( @@ -65,7 +65,7 @@ namespace aes const char* src) { aes_box_parse_key(&dest, algorithm, src, - ErrorDetailsThrowsInDestructor()); + ErrorDetailsThrowsInDestructor{}); } static void parse_key( @@ -81,7 +81,7 @@ namespace aes , mode(AES_ECB) { aes_box_init(&impl, algorithm, &key, mode, nullptr, - ErrorDetailsThrowsInDestructor()); + ErrorDetailsThrowsInDestructor{}); } Box(Algorithm algorithm, const Key& key, Mode mode, const Block& iv) @@ -89,21 +89,21 @@ namespace aes , mode(mode) { aes_box_init(&impl, algorithm, &key, mode, &iv, - ErrorDetailsThrowsInDestructor()); + ErrorDetailsThrowsInDestructor{}); } void encrypt_block(const Block& plaintext, Block& ciphertext) { aes_box_encrypt_block( &impl, &plaintext, &ciphertext, - ErrorDetailsThrowsInDestructor()); + ErrorDetailsThrowsInDestructor{}); } void decrypt_block(const Block& ciphertext, Block& plaintext) { aes_box_decrypt_block( &impl, &ciphertext, &plaintext, - ErrorDetailsThrowsInDestructor()); + ErrorDetailsThrowsInDestructor{}); } std::vector encrypt_buffer( @@ -118,7 +118,7 @@ namespace aes src_size, nullptr, &dest_size, - aes::ErrorDetailsThrowsInDestructor()); + aes::ErrorDetailsThrowsInDestructor{}); std::vector dest_buf; dest_buf.resize(dest_size); @@ -129,7 +129,7 @@ namespace aes src_size, dest_buf.data(), &dest_size, - aes::ErrorDetailsThrowsInDestructor()); + aes::ErrorDetailsThrowsInDestructor{}); dest_buf.resize(dest_size); return dest_buf; @@ -147,7 +147,7 @@ namespace aes src_size, nullptr, &dest_size, - aes::ErrorDetailsThrowsInDestructor()); + aes::ErrorDetailsThrowsInDestructor{}); std::vector dest_buf; dest_buf.resize(dest_size); @@ -158,7 +158,7 @@ namespace aes src_size, dest_buf.data(), &dest_size, - aes::ErrorDetailsThrowsInDestructor()); + aes::ErrorDetailsThrowsInDestructor{}); dest_buf.resize(dest_size); return dest_buf; -- cgit v1.2.3