Missed a small part of my original SE050 sign fix

Empty keyId handling now exists so we shouldn't return `BAD_FUNC_ARG`.
pull/5360/head
Andrew Hutchings 2022-07-14 07:47:33 +01:00
parent c211b90aab
commit 3f390efb24
1 changed files with 0 additions and 3 deletions

View File

@ -524,9 +524,6 @@ int se050_ecc_sign_hash_ex(const byte* in, word32 inLen, byte* out,
if (cfg_se050_i2c_pi == NULL) {
return WC_HW_E;
}
if (key->keyId <= 0) {
return BAD_FUNC_ARG;
}
keySize = key->dp->size;
ret = se050_map_curve(key->dp->id, keySize, &keySizeBits, &curveType);