mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Missed a small part of my original SE050 sign fix
Empty keyId handling now exists so we shouldn't return `BAD_FUNC_ARG`.
This commit is contained in:
@ -524,9 +524,6 @@ int se050_ecc_sign_hash_ex(const byte* in, word32 inLen, byte* out,
|
|||||||
if (cfg_se050_i2c_pi == NULL) {
|
if (cfg_se050_i2c_pi == NULL) {
|
||||||
return WC_HW_E;
|
return WC_HW_E;
|
||||||
}
|
}
|
||||||
if (key->keyId <= 0) {
|
|
||||||
return BAD_FUNC_ARG;
|
|
||||||
}
|
|
||||||
|
|
||||||
keySize = key->dp->size;
|
keySize = key->dp->size;
|
||||||
ret = se050_map_curve(key->dp->id, keySize, &keySizeBits, &curveType);
|
ret = se050_map_curve(key->dp->id, keySize, &keySizeBits, &curveType);
|
||||||
|
Reference in New Issue
Block a user