diff --git a/src/internal.c b/src/internal.c index d4b320e32..600098c30 100755 --- a/src/internal.c +++ b/src/internal.c @@ -19610,7 +19610,7 @@ int DecodePrivateKey(WOLFSSL *ssl, word16* length) } /* Return the maximum signature length. */ - *length = wc_ecc_sig_size((ecc_key*)ssl->hsKey); + *length = (word16)wc_ecc_sig_size((ecc_key*)ssl->hsKey); goto exit_dpk; } diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 32e9ac163..111b1d2bc 100755 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -3010,9 +3010,9 @@ static int wc_ecc_make_pub_ex(ecc_key* key, ecc_curve_spec* curveIn, { int err = MP_OKAY; #ifndef WOLFSSL_ATECC508A - ecc_point* base = NULL; - DECLARE_CURVE_SPECS(ECC_CURVE_FIELD_COUNT) + ecc_point* base = NULL; ecc_point* pub; + DECLARE_CURVE_SPECS(ECC_CURVE_FIELD_COUNT) #endif if (key == NULL) {