Skip to content

Commit 616a6a5

Browse files
committed
wolfcrypt/src/ecc.c: in wc_ecc_import_point_der_ex() and wc_ecc_import_x963_ex2(), add missing retval capture for sp_ecc_uncompress_sm2_256() (Fenrir M-68).
1 parent bdea01a commit 616a6a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/ecc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9497,7 +9497,7 @@ int wc_ecc_import_point_der_ex(const byte* in, word32 inLen,
94979497
#if defined(WOLFSSL_SM2) && defined(WOLFSSL_SP_SM2)
94989498
if (curve_idx != ECC_CUSTOM_IDX &&
94999499
ecc_sets[curve_idx].id == ECC_SM2P256V1) {
9500-
sp_ecc_uncompress_sm2_256(point->x, pointType, point->y);
9500+
err = sp_ecc_uncompress_sm2_256(point->x, pointType, point->y);
95019501
}
95029502
else
95039503
#endif
@@ -10854,7 +10854,7 @@ int wc_ecc_import_x963_ex2(const byte* in, word32 inLen, ecc_key* key,
1085410854
#endif
1085510855
#if defined(WOLFSSL_SM2) && defined(WOLFSSL_SP_SM2)
1085610856
if (key->dp->id == ECC_SM2P256V1) {
10857-
sp_ecc_uncompress_sm2_256(key->pubkey.x, pointType, key->pubkey.y);
10857+
err = sp_ecc_uncompress_sm2_256(key->pubkey.x, pointType, key->pubkey.y);
1085810858
}
1085910859
else
1086010860
#endif

0 commit comments

Comments
 (0)