summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-30 04:04:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-02 03:41:49 +0200
commit6ac7dbd0250a9b44c2dbc6d9cd134d7e285f265b (patch)
tree8bc91f9b88cde6977f2fea68c61dcf00157e99e1
parentchacha20: split chacha20_ctx into union (diff)
downloadwireguard-monolithic-historical-6ac7dbd0250a9b44c2dbc6d9cd134d7e285f265b.tar.xz
wireguard-monolithic-historical-6ac7dbd0250a9b44c2dbc6d9cd134d7e285f265b.zip
chacha20: no need to align ctx
We don't use vmovdqa any more. Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
-rw-r--r--src/crypto/include/zinc/chacha20.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/include/zinc/chacha20.h b/src/crypto/include/zinc/chacha20.h
index 37ec3b4..0b98bd6 100644
--- a/src/crypto/include/zinc/chacha20.h
+++ b/src/crypto/include/zinc/chacha20.h
@@ -37,7 +37,7 @@ struct chacha20_ctx {
u32 counter[4];
};
};
-} __aligned(32);
+};
static inline void chacha20_init(struct chacha20_ctx *ctx,
const u8 key[CHACHA20_KEY_SIZE],