mirror of https://github.com/wolfSSL/wolfssl.git
Add a space after if and for
parent
1646a4b274
commit
c05c827d6b
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue