FIX fp_generic.c
Change-Id: Ic2498acd3f4f56a4d45c91c1d676a19297e42741
This commit is contained in:
parent
70e42e8f74
commit
02f014ee2a
@ -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}
|
||||
|
2
third_party/sike/asm/fp-x86_64.pl
vendored
2
third_party/sike/asm/fp-x86_64.pl
vendored
@ -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($_)";}
|
||||
|
2
third_party/sike/asm/fp_generic.c
vendored
2
third_party/sike/asm/fp_generic.c
vendored
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user