Skip to content

Commit c05c827

Browse files
committed
Add a space after if and for
1 parent 1646a4b commit c05c827

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ssl_load.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
965965
ret = wc_Dilithium_PrivateKeyDecode(der->buffer, &idx, key, der->length);
966966
if (ret == 0) {
967967
ret = dilithium_get_oid_sum(key, &keyFormatTemp);
968-
if(ret == 0) {
968+
if (ret == 0) {
969969
/* Format is known. */
970970
#if defined(WOLFSSL_DILITHIUM_FIPS204_DRAFT)
971971
if (keyFormatTemp == DILITHIUM_LEVEL2k) {
@@ -999,7 +999,7 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
999999
}
10001000
}
10011001

1002-
if(ret == 0) {
1002+
if (ret == 0) {
10031003
/* Get the minimum Dilithium key size from SSL or SSL context
10041004
* object. */
10051005
int minKeySz = ssl ? ssl->options.minDilithiumKeySz :
@@ -1012,7 +1012,7 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
10121012
}
10131013
}
10141014

1015-
if(ret == 0) {
1015+
if (ret == 0) {
10161016
*keyFormat = keyFormatTemp;
10171017
*keyType = keyTypeTemp;
10181018
*keySize = keySizeTemp;

tests/api/test_mldsa.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -16705,7 +16705,7 @@ int test_mldsa_pkcs8(void)
1670516705
ExpectIntEQ(wc_dilithium_init(&mldsa_key), 0);
1670616706

1670716707
/* Test private + public key (separated format) */
16708-
for(i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) {
16708+
for (i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) {
1670916709
ExpectIntEQ(wc_dilithium_set_level(&mldsa_key,
1671016710
test_variant[i].wcId), 0);
1671116711
ExpectIntEQ(wc_dilithium_make_key(&mldsa_key, &rng), 0);
@@ -16724,7 +16724,7 @@ int test_mldsa_pkcs8(void)
1672416724
}
1672516725

1672616726
/* Test private key only */
16727-
for(i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) {
16727+
for (i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) {
1672816728
ExpectIntEQ(wc_dilithium_set_level(&mldsa_key, test_variant[i].wcId),
1672916729
0);
1673016730
ExpectIntEQ(wc_dilithium_make_key(&mldsa_key, &rng), 0);
@@ -16743,7 +16743,7 @@ int test_mldsa_pkcs8(void)
1674316743
}
1674416744

1674516745
/* Test private + public key (integrated format) */
16746-
for(i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) {
16746+
for (i = 0; i < sizeof(test_variant) / sizeof(test_variant[0]); ++i) {
1674716747
ExpectIntEQ(wc_dilithium_set_level(&mldsa_key, test_variant[i].wcId),
1674816748
0);
1674916749
ExpectIntEQ(wc_dilithium_make_key(&mldsa_key, &rng), 0);

0 commit comments

Comments
 (0)