FIX fp_generic.c

Change-Id: Ic2498acd3f4f56a4d45c91c1d676a19297e42741
This commit is contained in:
Henry Case 2019-04-21 00:03:06 +01:00
parent 70e42e8f74
commit 02f014ee2a
3 changed files with 5 additions and 0 deletions

View File

@ -411,6 +411,7 @@ add_library(
../third_party/sike/isogeny.c
../third_party/sike/P503.c
../third_party/sike/sike.c
../third_party/sike/asm/fp_generic.c
$<TARGET_OBJECTS:fipsmodule>
${CRYPTO_ARCH_SOURCES}

View File

@ -97,6 +97,7 @@ ___
}
# Compute z = x + y (mod p).
# Operation: c [rdx] = a [rdi] + b [rsi]
$code.=<<___;
.globl ${PREFIX}_fpadd
.type ${PREFIX}_fpadd,\@function,3
@ -224,6 +225,7 @@ sub cswap_block16() {
# Conditionally swaps bits in x and y in constant time.
# mask indicates bits to be swapped (set bits are swapped)
# Operation: [rdi] <-> [rsi] if rdx==1
sub cswap {
# P[0].X with Q[0].X
foreach ( 0.. 3){$BLOCKS.=eval "&cswap_block16($_)";}

View File

@ -4,6 +4,8 @@
* Abstract: portable modular arithmetic for P503
*********************************************************************************************/
#include <openssl/base.h>
#if defined(OPENSSL_NO_ASM) || \
(!defined(OPENSSL_X86_64) && !defined(OPENSSL_AARCH64))