mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 20:15:32 +00:00
Removing 'if' branch from the fix.
This new error shouldn't be distinguishable from other padding errors. Updating 'bad' instead of adding a new 'if' branch.
This commit is contained in:
parent
f1225eaffc
commit
7c3be6b97e
|
@ -844,8 +844,7 @@ int rsa_rsaes_pkcs1_v15_decrypt( rsa_context *ctx,
|
|||
bad |= *p++; /* Must be zero */
|
||||
}
|
||||
|
||||
if( pad_count < 8 )
|
||||
return( MBEDTLS_ERR_RSA_BAD_INPUT_DATA );
|
||||
bad |= ( pad_count < 8 );
|
||||
|
||||
if( bad )
|
||||
return( POLARSSL_ERR_RSA_INVALID_PADDING );
|
||||
|
|
Loading…
Reference in a new issue