mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
crypto: repalce tabs with spaces
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15824)
This commit is contained in:
parent
a0430488c1
commit
d05bfc1254
@ -98,7 +98,7 @@ int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b)
|
||||
int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src)
|
||||
{
|
||||
if (src == NULL || dest == NULL)
|
||||
return 0;
|
||||
return 0;
|
||||
|
||||
if (dest->algorithm)
|
||||
ASN1_OBJECT_free(dest->algorithm);
|
||||
@ -110,7 +110,7 @@ int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src)
|
||||
|
||||
if (src->algorithm)
|
||||
if ((dest->algorithm = OBJ_dup(src->algorithm)) == NULL)
|
||||
return 0;
|
||||
return 0;
|
||||
|
||||
if (src->parameter != NULL) {
|
||||
dest->parameter = ASN1_TYPE_new();
|
||||
@ -122,7 +122,7 @@ int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src)
|
||||
*/
|
||||
if (ASN1_TYPE_set1(dest->parameter,
|
||||
src->parameter->type, src->parameter->value.ptr) == 0)
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
@ -412,7 +412,7 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid,
|
||||
|
||||
#ifndef FIPS_MODULE
|
||||
if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL))
|
||||
return 0;
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
if (nid <= 0 || method == NULL || store == NULL)
|
||||
|
@ -285,7 +285,7 @@ int ossl_rsa_sp800_56b_derive_params_from_pq(RSA *rsa, int nbits,
|
||||
if (rsa->dmp1 == NULL)
|
||||
rsa->dmp1 = BN_secure_new();
|
||||
if (rsa->dmp1 == NULL)
|
||||
goto err;
|
||||
goto err;
|
||||
BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME);
|
||||
if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx))
|
||||
goto err;
|
||||
@ -294,7 +294,7 @@ int ossl_rsa_sp800_56b_derive_params_from_pq(RSA *rsa, int nbits,
|
||||
if (rsa->dmq1 == NULL)
|
||||
rsa->dmq1 = BN_secure_new();
|
||||
if (rsa->dmq1 == NULL)
|
||||
goto err;
|
||||
goto err;
|
||||
BN_set_flags(rsa->dmq1, BN_FLG_CONSTTIME);
|
||||
if (!BN_mod(rsa->dmq1, rsa->d, q1, ctx))
|
||||
goto err;
|
||||
@ -303,7 +303,7 @@ int ossl_rsa_sp800_56b_derive_params_from_pq(RSA *rsa, int nbits,
|
||||
BN_free(rsa->iqmp);
|
||||
rsa->iqmp = BN_secure_new();
|
||||
if (rsa->iqmp == NULL)
|
||||
goto err;
|
||||
goto err;
|
||||
BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME);
|
||||
if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL)
|
||||
goto err;
|
||||
|
Loading…
Reference in New Issue
Block a user