aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/pubkey.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-20 18:30:21 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-20 18:32:40 +0100
commit5e99a6d43fe2351adf36c786f5ea2086a8fe7ab8 (patch)
treec0b9514848fa8f573e2a918166aeaa8316246e43 /src/tools/pubkey.c
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-5e99a6d43fe2351adf36c786f5ea2086a8fe7ab8.tar.xz
wireguard-monolithic-historical-5e99a6d43fe2351adf36c786f5ea2086a8fe7ab8.zip
tools: curve25519: handle unaligned loads/stores safely
Reported-by: Chris Hewitt <chris@chrishewitt.net>
Diffstat (limited to 'src/tools/pubkey.c')
-rw-r--r--src/tools/pubkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/pubkey.c b/src/tools/pubkey.c
index cf8e256..9741bcf 100644
--- a/src/tools/pubkey.c
+++ b/src/tools/pubkey.c
@@ -13,7 +13,7 @@
int pubkey_main(int argc, char *argv[])
{
- uint8_t key[WG_KEY_LEN];
+ uint8_t key[WG_KEY_LEN] __attribute__((aligned(sizeof(uintptr_t))));
char base64[WG_KEY_LEN_BASE64];
int trailing_char;