forked from wolfSSL/wolfssl
SP asm: fix map function to use p not point
This commit is contained in:
@@ -25274,7 +25274,7 @@ int sp_ecc_map_256(mp_int* pX, mp_int* pY, mp_int* pZ)
|
|||||||
|
|
||||||
#ifdef HAVE_INTEL_AVX2
|
#ifdef HAVE_INTEL_AVX2
|
||||||
if (IS_INTEL_BMI2(cpuid_flags) && IS_INTEL_ADX(cpuid_flags))
|
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
|
else
|
||||||
#endif
|
#endif
|
||||||
sp_256_map_4(p, p, tmp);
|
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
|
#ifdef HAVE_INTEL_AVX2
|
||||||
if (IS_INTEL_BMI2(cpuid_flags) && IS_INTEL_ADX(cpuid_flags))
|
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
|
else
|
||||||
#endif
|
#endif
|
||||||
sp_384_map_6(p, p, tmp);
|
sp_384_map_6(p, p, tmp);
|
||||||
|
Reference in New Issue
Block a user