From 89da534f3cbac2619abdeb125c628b37aa5d3416 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 11 Jun 2015 01:24:48 +0300 Subject: code style --- utils/aes128ecb_decrypt_file.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/aes128ecb_decrypt_file.cpp') diff --git a/utils/aes128ecb_decrypt_file.cpp b/utils/aes128ecb_decrypt_file.cpp index 6be3f94..33e0515 100644 --- a/utils/aes128ecb_decrypt_file.cpp +++ b/utils/aes128ecb_decrypt_file.cpp @@ -57,7 +57,7 @@ int main(int argc, char** argv) src_ifs.exceptions(std::ifstream::badbit | std::ifstream::failbit); src_ifs.open(src_path, std::ifstream::binary); - std::vector src_buf; + std::vector src_buf; src_buf.reserve(static_cast::size_type>(src_size)); src_buf.assign(std::istreambuf_iterator(src_ifs), std::istreambuf_iterator()); @@ -68,7 +68,7 @@ int main(int argc, char** argv) auto dest_size = aesni_decrypt_buffer_ecb128( src_buf.data(), static_cast(src_size), NULL, &inverted_schedule); - std::vector dest_buf(static_cast::size_type>(dest_size)); + std::vector dest_buf(static_cast::size_type>(dest_size)); dest_size = aesni_decrypt_buffer_ecb128( src_buf.data(), static_cast(src_size), dest_buf.data(), &inverted_schedule); @@ -76,7 +76,7 @@ int main(int argc, char** argv) std::ofstream dest_ofs; dest_ofs.exceptions(std::ofstream::badbit | std::ofstream::failbit); dest_ofs.open(dest_path, std::ofstream::binary); - dest_ofs.write(reinterpret_cast(dest_buf.data()), dest_size); + dest_ofs.write(dest_buf.data(), dest_size); } catch (const std::exception& e) { -- cgit v1.2.3