From 78f116b27f9593468a3869238973488de4483248 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Tue, 22 Feb 2022 16:33:24 +1000 Subject: [PATCH] SP asm: fix map function to use p not point --- wolfcrypt/src/sp_x86_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/sp_x86_64.c b/wolfcrypt/src/sp_x86_64.c index 387d3d6da..c3c7aee1f 100644 --- a/wolfcrypt/src/sp_x86_64.c +++ b/wolfcrypt/src/sp_x86_64.c @@ -25274,7 +25274,7 @@ int sp_ecc_map_256(mp_int* pX, mp_int* pY, mp_int* pZ) #ifdef HAVE_INTEL_AVX2 if (IS_INTEL_BMI2(cpuid_flags) && IS_INTEL_ADX(cpuid_flags)) - sp_256_map_avx2_4(point, point, tmp); + sp_256_map_avx2_4(p, p, tmp); else #endif sp_256_map_4(p, p, tmp); @@ -49875,7 +49875,7 @@ int sp_ecc_map_384(mp_int* pX, mp_int* pY, mp_int* pZ) #ifdef HAVE_INTEL_AVX2 if (IS_INTEL_BMI2(cpuid_flags) && IS_INTEL_ADX(cpuid_flags)) - sp_384_map_avx2_6(point, point, tmp); + sp_384_map_avx2_6(p, p, tmp); else #endif sp_384_map_6(p, p, tmp);