diff options
author | Jack Lloyd <[email protected]> | 2018-07-13 17:01:17 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-07-13 17:01:17 -0400 |
commit | a2bf7f7f7d4f7907ea711cd6a546485711d2cf42 (patch) | |
tree | 3c8391106e2472680a8d7baad437d32964195ca5 /src/lib/block/camellia | |
parent | 239a6a388a5292111b12dcf36b89a62c2c3ca890 (diff) |
Correct a comment in Camellia code, and align the 256 byte table
Diffstat (limited to 'src/lib/block/camellia')
-rw-r--r-- | src/lib/block/camellia/camellia.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/block/camellia/camellia.cpp b/src/lib/block/camellia/camellia.cpp index 9281cd859..2688a0c3d 100644 --- a/src/lib/block/camellia/camellia.cpp +++ b/src/lib/block/camellia/camellia.cpp @@ -544,10 +544,12 @@ namespace Camellia_F { /* * We use the slow byte-wise version of F in the first and last rounds -* to help protect against timing attacks +* to help protect against side channels analyzing cache hits on the +* larger sbox tables. */ uint64_t F_SLOW(uint64_t v, uint64_t K) { + BOTAN_ALIGNAS(64) static const uint8_t SBOX[256] = { 0x70, 0x82, 0x2C, 0xEC, 0xB3, 0x27, 0xC0, 0xE5, 0xE4, 0x85, 0x57, 0x35, 0xEA, 0x0C, 0xAE, 0x41, 0x23, 0xEF, 0x6B, 0x93, 0x45, 0x19, |