mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 19:20:55 +02:00
fix silabs_ecc_sign_hash buffer validation
This commit is contained in:
@@ -108,10 +108,10 @@ int silabs_ecc_sign_hash(const byte* in, word32 inlen, byte* out,
|
||||
return BAD_FUNC_ARG;
|
||||
|
||||
slkey = &key->key;
|
||||
siglen = *outlen;
|
||||
siglen = key->dp->size * 2;
|
||||
|
||||
if ((int)siglen >= key->dp->size * 2) {
|
||||
siglen = key->dp->size * 2;
|
||||
if (*outlen < siglen) {
|
||||
return BUFFER_E;
|
||||
}
|
||||
|
||||
#if (_SILICON_LABS_SECURITY_FEATURE == _SILICON_LABS_SECURITY_FEATURE_VAULT)
|
||||
|
||||
Reference in New Issue
Block a user