Skip to content

Commit 5ff7fde

Browse files
committed
update outlen after silabs ECC sign
1 parent 7d36988 commit 5ff7fde

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

wolfcrypt/src/port/silabs/silabs_ecc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ int silabs_ecc_sign_hash(const byte* in, word32 inlen, byte* out,
138138
siglen
139139
);
140140
}
141-
return (sl_stat == SL_STATUS_OK) ? 0 : WC_HW_E;
141+
if (sl_stat == SL_STATUS_OK) {
142+
*outlen = siglen;
143+
return 0;
144+
}
145+
return WC_HW_E;
142146
}
143147

144148
#ifdef HAVE_ECC_VERIFY

0 commit comments

Comments
 (0)