Changing buffer size checks.

Signed-off-by: pespacek <peter.spacek@silabs.com>
This commit is contained in:
pespacek
2022-02-14 15:13:26 +01:00
parent 3110c7b340
commit b9f07a79a7
3 changed files with 7 additions and 7 deletions

View File

@@ -222,7 +222,7 @@ static int x509write_csr_der_internal( mbedtls_x509write_csr *ctx,
c,
len,
hash,
PSA_HASH_MAX_SIZE,
sizeof( hash ),
&hash_len ) != PSA_SUCCESS )
{
return ( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );