From ed8a4ea2f4dbba57d9a8b0a86627bd388de0fef7 Mon Sep 17 00:00:00 2001 From: Peter Schwabe Date: Tue, 9 Apr 2019 14:57:52 +0200 Subject: [PATCH] Fixed wrong header name in aes.c --- common/aes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/aes.c b/common/aes.c index bb58ada7..0c4fefb8 100644 --- a/common/aes.c +++ b/common/aes.c @@ -29,7 +29,7 @@ #include #include -#include "ctaes.h" +#include "aes.h" static inline uint32_t br_dec32le(const unsigned char *src) { return (uint32_t)src[0] @@ -249,8 +249,8 @@ static void br_aes_ct64_ortho(uint64_t *q) { uint64_t a, b; \ a = (x); \ b = (y); \ - (x) = (a & (uint64_t)cl) | ((b & (uint64_t)cl) << (s)); \ - (y) = ((a & (uint64_t)ch) >> (s)) | (b & (uint64_t)ch); \ + (x) = (a & (uint64_t)(cl)) | ((b & (uint64_t)(cl)) << (s)); \ + (y) = ((a & (uint64_t)(ch)) >> (s)) | (b & (uint64_t)(ch)); \ } while (0) #define SWAP2(x, y) SWAPN(0x5555555555555555, 0xAAAAAAAAAAAAAAAA, 1, x, y)