|
|
@@ -445,6 +445,11 @@ int RSA_verify_raw(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
if (in_len != rsa_size) { |
|
|
|
OPENSSL_PUT_ERROR(RSA, RSA_R_DATA_LEN_NOT_EQUAL_TO_MOD_LEN); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
if (!check_modulus_and_exponent_sizes(rsa)) { |
|
|
|
return 0; |
|
|
|
} |
|
|
@@ -472,11 +477,6 @@ int RSA_verify_raw(RSA *rsa, size_t *out_len, uint8_t *out, size_t max_out, |
|
|
|
goto err; |
|
|
|
} |
|
|
|
|
|
|
|
if (in_len != rsa_size) { |
|
|
|
OPENSSL_PUT_ERROR(RSA, RSA_R_DATA_LEN_NOT_EQUAL_TO_MOD_LEN); |
|
|
|
goto err; |
|
|
|
} |
|
|
|
|
|
|
|
if (BN_bin2bn(in, in_len, f) == NULL) { |
|
|
|
goto err; |
|
|
|
} |
|
|
|