mirror of https://github.com/wolfSSL/wolfssl.git
c89 build with ECC compresed key
parent
e307f3e89d
commit
6c55701725
|
@ -3891,10 +3891,10 @@ int wc_ecc_import_point_der(byte* in, word32 inLen, const int curve_idx,
|
||||||
#ifdef HAVE_COMP_KEY
|
#ifdef HAVE_COMP_KEY
|
||||||
if (err == MP_OKAY && compressed == 1) { /* build y */
|
if (err == MP_OKAY && compressed == 1) { /* build y */
|
||||||
mp_int t1, t2;
|
mp_int t1, t2;
|
||||||
DECLARE_CURVE_SPECS(3)
|
|
||||||
|
|
||||||
int did_init = 0;
|
int did_init = 0;
|
||||||
|
|
||||||
|
DECLARE_CURVE_SPECS(3)
|
||||||
|
|
||||||
if (mp_init_multi(&t1, &t2, NULL, NULL, NULL, NULL) != MP_OKAY)
|
if (mp_init_multi(&t1, &t2, NULL, NULL, NULL, NULL) != MP_OKAY)
|
||||||
err = MEMORY_E;
|
err = MEMORY_E;
|
||||||
else
|
else
|
||||||
|
@ -4495,10 +4495,11 @@ int wc_ecc_import_x963_ex(const byte* in, word32 inLen, ecc_key* key,
|
||||||
|
|
||||||
#ifdef HAVE_COMP_KEY
|
#ifdef HAVE_COMP_KEY
|
||||||
if (err == MP_OKAY && compressed == 1) { /* build y */
|
if (err == MP_OKAY && compressed == 1) { /* build y */
|
||||||
DECLARE_CURVE_SPECS(3)
|
|
||||||
mp_int t1, t2;
|
mp_int t1, t2;
|
||||||
int did_init = 0;
|
int did_init = 0;
|
||||||
|
|
||||||
|
DECLARE_CURVE_SPECS(3)
|
||||||
|
|
||||||
if (mp_init_multi(&t1, &t2, NULL, NULL, NULL, NULL) != MP_OKAY)
|
if (mp_init_multi(&t1, &t2, NULL, NULL, NULL, NULL) != MP_OKAY)
|
||||||
err = MEMORY_E;
|
err = MEMORY_E;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue