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:
Pauli 2021-06-18 17:50:54 +10:00
parent a0430488c1
commit d05bfc1254
3 changed files with 7 additions and 7 deletions

View File

@ -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) int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src)
{ {
if (src == NULL || dest == NULL) if (src == NULL || dest == NULL)
return 0; return 0;
if (dest->algorithm) if (dest->algorithm)
ASN1_OBJECT_free(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 (src->algorithm)
if ((dest->algorithm = OBJ_dup(src->algorithm)) == NULL) if ((dest->algorithm = OBJ_dup(src->algorithm)) == NULL)
return 0; return 0;
if (src->parameter != NULL) { if (src->parameter != NULL) {
dest->parameter = ASN1_TYPE_new(); 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, if (ASN1_TYPE_set1(dest->parameter,
src->parameter->type, src->parameter->value.ptr) == 0) src->parameter->type, src->parameter->value.ptr) == 0)
return 0; return 0;
} }
return 1; return 1;

View File

@ -412,7 +412,7 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid,
#ifndef FIPS_MODULE #ifndef FIPS_MODULE
if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL)) if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL))
return 0; return 0;
#endif #endif
if (nid <= 0 || method == NULL || store == NULL) if (nid <= 0 || method == NULL || store == NULL)

View File

@ -285,7 +285,7 @@ int ossl_rsa_sp800_56b_derive_params_from_pq(RSA *rsa, int nbits,
if (rsa->dmp1 == NULL) if (rsa->dmp1 == NULL)
rsa->dmp1 = BN_secure_new(); rsa->dmp1 = BN_secure_new();
if (rsa->dmp1 == NULL) if (rsa->dmp1 == NULL)
goto err; goto err;
BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME); BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME);
if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx)) if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx))
goto err; goto err;
@ -294,7 +294,7 @@ int ossl_rsa_sp800_56b_derive_params_from_pq(RSA *rsa, int nbits,
if (rsa->dmq1 == NULL) if (rsa->dmq1 == NULL)
rsa->dmq1 = BN_secure_new(); rsa->dmq1 = BN_secure_new();
if (rsa->dmq1 == NULL) if (rsa->dmq1 == NULL)
goto err; goto err;
BN_set_flags(rsa->dmq1, BN_FLG_CONSTTIME); BN_set_flags(rsa->dmq1, BN_FLG_CONSTTIME);
if (!BN_mod(rsa->dmq1, rsa->d, q1, ctx)) if (!BN_mod(rsa->dmq1, rsa->d, q1, ctx))
goto err; goto err;
@ -303,7 +303,7 @@ int ossl_rsa_sp800_56b_derive_params_from_pq(RSA *rsa, int nbits,
BN_free(rsa->iqmp); BN_free(rsa->iqmp);
rsa->iqmp = BN_secure_new(); rsa->iqmp = BN_secure_new();
if (rsa->iqmp == NULL) if (rsa->iqmp == NULL)
goto err; goto err;
BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME); BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME);
if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL)
goto err; goto err;