From 98822e6a7fad6b5f42bc231b9b199fb5a154b882 Mon Sep 17 00:00:00 2001 From: Jake Massimo Date: Fri, 22 Nov 2024 14:22:51 -0800 Subject: [PATCH] spacing nits --- crypto/dilithium/p_pqdsa_test.cc | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/crypto/dilithium/p_pqdsa_test.cc b/crypto/dilithium/p_pqdsa_test.cc index 2a8b5492c1..a4e048fc9b 100644 --- a/crypto/dilithium/p_pqdsa_test.cc +++ b/crypto/dilithium/p_pqdsa_test.cc @@ -973,9 +973,9 @@ CMP_VEC_AND_PTR(vec, pkey->pkey.pqdsa_key->public_key, len) CMP_VEC_AND_PTR(vec, pkey->pkey.pqdsa_key->private_key, len) static const struct PQDSATestVector parameterSet[] = { - {"MLDSA44", NID_MLDSA44, 1312, 2560, 2420, "dilithium/kat/MLDSA_44_hedged_pure.txt", mldsa44kPublicKey, mldsa44kPublicKeySPKI, 1334}, - {"MLDSA65", NID_MLDSA65, 1952, 4032, 3309, "dilithium/kat/MLDSA_65_hedged_pure.txt", mldsa65kPublicKey, mldsa65kPublicKeySPKI, 1974}, - {"MLDSA87", NID_MLDSA87, 2592, 4896, 4627, "dilithium/kat/MLDSA_87_hedged_pure.txt", mldsa87kPublicKey, mldsa87kPublicKeySPKI, 2614}, + {"MLDSA44", NID_MLDSA44, 1312, 2560, 2420, "dilithium/kat/MLDSA_44_hedged_pure.txt", mldsa44kPublicKey, mldsa44kPublicKeySPKI, 1334}, + {"MLDSA65", NID_MLDSA65, 1952, 4032, 3309, "dilithium/kat/MLDSA_65_hedged_pure.txt", mldsa65kPublicKey, mldsa65kPublicKeySPKI, 1974}, + {"MLDSA87", NID_MLDSA87, 2592, 4896, 4627, "dilithium/kat/MLDSA_87_hedged_pure.txt", mldsa87kPublicKey, mldsa87kPublicKeySPKI, 2614}, }; class PQDSAParameterTest : public testing::TestWithParam {}; @@ -1048,15 +1048,15 @@ TEST_P(PQDSAParameterTest, KAT) { // to expected value from KAT, then verify signature. if (name == "MLDSA44") { ASSERT_TRUE(ml_dsa_44_sign_internal(priv.data(), - signature.data(), &sig_len, - msg.data(), mlen_int, - m_prime, m_prime_len, - rng.data())); + signature.data(), &sig_len, + msg.data(), mlen_int, + m_prime, m_prime_len, + rng.data())); ASSERT_EQ(Bytes(signature), Bytes(sm)); ASSERT_TRUE(ml_dsa_44_verify_internal(pub.data(), - signature.data(), sig_len, - msg.data(), mlen_int, - m_prime, m_prime_len)); + signature.data(), sig_len, + msg.data(), mlen_int, + m_prime, m_prime_len)); } else if (name == "MLDSA65") { ASSERT_TRUE(ml_dsa_65_sign_internal(priv.data(), @@ -1072,15 +1072,15 @@ TEST_P(PQDSAParameterTest, KAT) { } else if (name == "MLDSA87") { ASSERT_TRUE(ml_dsa_87_sign_internal(priv.data(), - signature.data(), &sig_len, - msg.data(), mlen_int, - m_prime, m_prime_len, - rng.data())); + signature.data(), &sig_len, + msg.data(), mlen_int, + m_prime, m_prime_len, + rng.data())); ASSERT_EQ(Bytes(signature), Bytes(sm)); ASSERT_TRUE(ml_dsa_87_verify_internal(pub.data(), - signature.data(), sig_len, - msg.data(), mlen_int, - m_prime, m_prime_len)); + signature.data(), sig_len, + msg.data(), mlen_int, + m_prime, m_prime_len)); } }); }