]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Use _NETTLE_ALIGN16 also for aes192_ctx and aes256_ctx. wip-use-alignas
authorNiels Möller <nisse@lysator.liu.se>
Sun, 22 Jun 2025 14:52:32 +0000 (16:52 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 22 Jun 2025 14:52:32 +0000 (16:52 +0200)
aes.h

diff --git a/aes.h b/aes.h
index 913c8463e728a43faf7ca5ea54dc4c170bceb5ba..de9f94b132f19acd1ebfd4646d07d8637d53c433 100644 (file)
--- a/aes.h
+++ b/aes.h
@@ -89,7 +89,7 @@ aes128_decrypt(const struct aes128_ctx *ctx,
 
 struct aes192_ctx
 {
-  uint32_t keys[4 * (_AES192_ROUNDS + 1)];
+  _NETTLE_ALIGN16 uint32_t keys[4 * (_AES192_ROUNDS + 1)];
 };
 
 void
@@ -110,7 +110,7 @@ aes192_decrypt(const struct aes192_ctx *ctx,
 
 struct aes256_ctx
 {
-  uint32_t keys[4 * (_AES256_ROUNDS + 1)];
+  _NETTLE_ALIGN16 uint32_t keys[4 * (_AES256_ROUNDS + 1)];
 };
 
 void