Adds: SIKE_NO_ASM
Change-Id: I10687d55f7992a65375f0bf26a3b55fd433c38a3
This commit is contained in:
parent
4fb9444202
commit
e7337737f3
4
third_party/sike/src/sike.c
vendored
4
third_party/sike/src/sike.c
vendored
@ -73,7 +73,7 @@ static void hmac_sum(
|
||||
|
||||
// Swap points.
|
||||
// If option = 0 then P <- P and Q <- Q, else if option = 0xFF...FF then P <- Q and Q <- P
|
||||
#if !defined(OPENSSL_X86_64) || defined(OPENSSL_NO_ASM)
|
||||
#if defined(SIKE_NO_ASM)
|
||||
static void cswap(point_proj_t P, point_proj_t Q, const crypto_word_t option)
|
||||
{
|
||||
crypto_word_t temp;
|
||||
@ -98,7 +98,7 @@ static void cswap(point_proj_t P, point_proj_t Q, const crypto_word_t option)
|
||||
// If option = 0 then P <- P and Q <- Q, else if option = 0xFF...FF then P <- Q and Q <- P
|
||||
static inline void fp2cswap(point_proj_t P, point_proj_t Q, const crypto_word_t option)
|
||||
{
|
||||
#if defined(OPENSSL_X86_64) && !defined(OPENSSL_NO_ASM)
|
||||
#if !defined(SIKE_NO_ASM)
|
||||
cswap_asm(P, Q, option);
|
||||
#else
|
||||
cswap(P, Q, option);
|
||||
|
Loading…
Reference in New Issue
Block a user