From 96ed1bf7f001e8302bdaa42ab37555ee5c0f9edb Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 15 Oct 2017 11:28:06 -0400 Subject: Additional final annotations --- src/lib/block/aes/aes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/block/aes') diff --git a/src/lib/block/aes/aes.cpp b/src/lib/block/aes/aes.cpp index 268e0804d..6afa5133a 100644 --- a/src/lib/block/aes/aes.cpp +++ b/src/lib/block/aes/aes.cpp @@ -119,7 +119,7 @@ inline uint32_t SE_word(uint32_t x) const uint32_t* AES_TE() { - class TE_Table + class TE_Table final { public: TE_Table() @@ -137,7 +137,7 @@ const uint32_t* AES_TE() return reinterpret_cast(data); } private: - std::aligned_storage::type data[256]; + std::aligned_storage<256*sizeof(uint32_t), 64>::type data[256]; }; static TE_Table table; @@ -146,7 +146,7 @@ const uint32_t* AES_TE() const uint32_t* AES_TD() { - class TD_Table + class TD_Table final { public: TD_Table() -- cgit v1.2.3