From c05c827d6b2a6de2d87166d24e021064510b0f6c Mon Sep 17 00:00:00 2001 From: Koji Takeda Date: Wed, 16 Apr 2025 16:09:02 +0900 Subject: [PATCH] Add a space after if and for --- src/ssl_load.c | 6 +++--- tests/api/test_mldsa.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ssl_load.c b/src/ssl_load.c index 19d1426a7..d3a64f59e 100644 --- a/src/ssl_load.c +++ b/src/ssl_load.c @@ -965,7 +965,7 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl, ret = wc_Dilithium_PrivateKeyDecode(der->buffer, &idx, key, der->length); if (ret == 0) { ret = dilithium_get_oid_sum(key, &keyFormatTemp); - if(ret == 0) { + if (ret == 0) { /* Format is known. */ #if defined(WOLFSSL_DILITHIUM_FIPS204_DRAFT) if (keyFormatTemp == DILITHIUM_LEVEL2k) { @@ -999,7 +999,7 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl, } } - if(ret == 0) { + if (ret == 0) { /* Get the minimum Dilithium key size from SSL or SSL context * object. */ int minKeySz = ssl ? ssl->options.minDilithiumKeySz : @@ -1012,7 +1012,7 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl, } } - if(ret == 0) { + if (ret == 0) { *keyFormat = keyFormatTemp; *keyType = keyTypeTemp; *keySize = keySizeTemp; diff --git a/tests/api/test_mldsa.c b/tests/api/test_mldsa.c index 3464471d2..a9d2e1980 100644 --- a/tests/api/test_mldsa.c +++ b/tests/api/test_mldsa.c @@ -16705,7 +16705,7 @@ int test_mldsa_pkcs8(void) ExpectIntEQ(wc_dilithium_init(&mldsa_key), 0); /* Test private + public key (separated format) */ - for(i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) { + for (i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) { ExpectIntEQ(wc_dilithium_set_level(&mldsa_key, test_variant[i].wcId), 0); ExpectIntEQ(wc_dilithium_make_key(&mldsa_key, &rng), 0); @@ -16724,7 +16724,7 @@ int test_mldsa_pkcs8(void) } /* Test private key only */ - for(i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) { + for (i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) { ExpectIntEQ(wc_dilithium_set_level(&mldsa_key, test_variant[i].wcId), 0); ExpectIntEQ(wc_dilithium_make_key(&mldsa_key, &rng), 0); @@ -16743,7 +16743,7 @@ int test_mldsa_pkcs8(void) } /* Test private + public key (integrated format) */ - for(i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) { + for (i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) { ExpectIntEQ(wc_dilithium_set_level(&mldsa_key, test_variant[i].wcId), 0); ExpectIntEQ(wc_dilithium_make_key(&mldsa_key, &rng), 0);