mirror of https://github.com/openssl/openssl.git
style issues
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2177)
This commit is contained in:
parent
285c7d9cdf
commit
b6b885c6b9
|
|
@ -566,7 +566,7 @@ RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd,
|
||||||
if (!rsa_md_to_algor(&pss->hashAlgorithm, sigmd))
|
if (!rsa_md_to_algor(&pss->hashAlgorithm, sigmd))
|
||||||
goto err;
|
goto err;
|
||||||
if (mgf1md == NULL)
|
if (mgf1md == NULL)
|
||||||
mgf1md = sigmd;
|
mgf1md = sigmd;
|
||||||
if (!rsa_md_to_mgf1(&pss->maskGenAlgorithm, mgf1md))
|
if (!rsa_md_to_mgf1(&pss->maskGenAlgorithm, mgf1md))
|
||||||
goto err;
|
goto err;
|
||||||
return pss;
|
return pss;
|
||||||
|
|
@ -674,7 +674,7 @@ int rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd,
|
||||||
*/
|
*/
|
||||||
if (pss->trailerField && ASN1_INTEGER_get(pss->trailerField) != 1) {
|
if (pss->trailerField && ASN1_INTEGER_get(pss->trailerField) != 1) {
|
||||||
RSAerr(RSA_F_RSA_PSS_GET_PARAM, RSA_R_INVALID_TRAILER);
|
RSAerr(RSA_F_RSA_PSS_GET_PARAM, RSA_R_INVALID_TRAILER);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue