diff options
Diffstat (limited to 'src/crypto/curve25519.c')
-rw-r--r-- | src/crypto/curve25519.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/curve25519.c b/src/crypto/curve25519.c index 09245a3..032f275 100644 --- a/src/crypto/curve25519.c +++ b/src/crypto/curve25519.c @@ -523,7 +523,7 @@ bool curve25519(u8 mypublic[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_P bool curve25519_generate_public(u8 pub[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_POINT_SIZE]) { - static const u8 basepoint[CURVE25519_POINT_SIZE] = { 9 }; + static const u8 basepoint[CURVE25519_POINT_SIZE] __aligned(32) = { 9 }; #ifdef CONFIG_X86_64 if (curve25519_use_avx && irq_fpu_usable()) { kernel_fpu_begin(); @@ -1511,7 +1511,7 @@ bool curve25519(u8 mypublic[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_P #endif bool curve25519_generate_public(u8 pub[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_POINT_SIZE]) { - static const u8 basepoint[CURVE25519_POINT_SIZE] = { 9 }; + static const u8 basepoint[CURVE25519_POINT_SIZE] __aligned(32) = { 9 }; return curve25519(pub, secret, basepoint); } #endif |