From be3c786e2320203911c41e36c17517fd161ef4b9 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 9 May 2014 18:41:39 -0700 Subject: [PATCH] smult_curve25519_donna_c64.c assumes little-endian. --- .../curve25519/donna_c64/smult_curve25519_donna_c64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c b/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c index 9e3fb1b2..9a7f9825 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +++ b/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c @@ -189,7 +189,7 @@ fsquare_times(felem output, const felem in, limb count) { output[4] = r4; } -#ifndef CPU_ALIGNED_ACCESS_REQUIRED +#if !defined(CPU_ALIGNED_ACCESS_REQUIRED) && defined(NATIVE_LITTLE_ENDIAN) # define U8TO64(p) (*((const uint64_t *) (p))) # define U64TO8(p, v) (*((uint64_t *) (p)) = (v)) #else