From 616a6a57890c19d35513f1044720f562d718b514 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 27 Feb 2026 23:39:57 -0600 Subject: [PATCH] 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). --- wolfcrypt/src/ecc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 721c52a1d5..d30151e9b0 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -9497,7 +9497,7 @@ int wc_ecc_import_point_der_ex(const byte* in, word32 inLen, #if defined(WOLFSSL_SM2) && defined(WOLFSSL_SP_SM2) if (curve_idx != ECC_CUSTOM_IDX && ecc_sets[curve_idx].id == ECC_SM2P256V1) { - sp_ecc_uncompress_sm2_256(point->x, pointType, point->y); + err = sp_ecc_uncompress_sm2_256(point->x, pointType, point->y); } else #endif @@ -10854,7 +10854,7 @@ int wc_ecc_import_x963_ex2(const byte* in, word32 inLen, ecc_key* key, #endif #if defined(WOLFSSL_SM2) && defined(WOLFSSL_SP_SM2) if (key->dp->id == ECC_SM2P256V1) { - sp_ecc_uncompress_sm2_256(key->pubkey.x, pointType, key->pubkey.y); + err = sp_ecc_uncompress_sm2_256(key->pubkey.x, pointType, key->pubkey.y); } else #endif