1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Fix bug in RSA PKCS#1 v1.5 "reversed" operations

This commit is contained in:
Manuel Pégourié-Gonnard
2014-02-03 11:58:55 +01:00
committed by Paul Bakker
parent c4919bc528
commit fbf0915404
3 changed files with 36 additions and 2 deletions

View File

@ -809,7 +809,7 @@ int rsa_rsaes_pkcs1_v15_decrypt( rsa_context *ctx,
* (minus one, for the 00 byte) */
for( i = 0; i < ilen - 3; i++ )
{
pad_done |= ( p[i] == 0xFF );
pad_done |= ( p[i] != 0xFF );
pad_count += ( pad_done == 0 );
}