27
27
#include < vector>
28
28
#include < span>
29
29
30
+ // LCOV_EXCL_START
31
+
30
32
namespace nist { namespace cavs {
31
33
32
34
namespace detail {
@@ -85,7 +87,7 @@ struct test_object_hash
85
87
// this hash test object.
86
88
87
89
explicit test_object_hash (const std::string& str_result)
88
- : my_result // LCOV_EXCL_LINE
90
+ : my_result
89
91
{
90
92
[&str_result]()
91
93
{
@@ -670,7 +672,7 @@ auto where_file(const std::string& test_vectors_filename, test_type test) -> std
670
672
671
673
const bool file_01_is_open { in_01.is_open () };
672
674
673
- // LCOV_EXCL_START
675
+
674
676
if (file_01_is_open)
675
677
{
676
678
in_01.close ();
@@ -748,7 +750,7 @@ auto where_file(const std::string& test_vectors_filename, test_type test) -> std
748
750
}
749
751
}
750
752
}
751
- // LCOV_EXCL_STOP
753
+
752
754
753
755
return test_vectors_filename_relative;
754
756
}
@@ -1769,7 +1771,7 @@ auto test_vectors_variable(const test_vector_container_type& test_vectors, const
1769
1771
{
1770
1772
if (!BOOST_TEST_EQ (test_vector.my_result [j], bits[j]))
1771
1773
{
1772
- false_counter++; // LCOV_EXCL_LINE
1774
+ false_counter++;
1773
1775
}
1774
1776
}
1775
1777
@@ -1798,7 +1800,7 @@ auto test_vectors_variable(const test_vector_container_type& test_vectors, const
1798
1800
{
1799
1801
if (!BOOST_TEST_EQ (test_vector.my_result [j], bits[j]))
1800
1802
{
1801
- false_counter++; // LCOV_EXCL_LINE
1803
+ false_counter++;
1802
1804
}
1803
1805
}
1804
1806
@@ -2009,7 +2011,7 @@ auto test_vectors_monte_xof(const nist::cavs::test_vector_container_type& test_v
2009
2011
for (auto & val : MDi)
2010
2012
{
2011
2013
// LCOV skips the following line even though MDi is not empty
2012
- val = static_cast <std::uint8_t >(0 ); // LCOV_EXCL_LINE
2014
+ val = static_cast <std::uint8_t >(0 );
2013
2015
}
2014
2016
2015
2017
const auto output_length = this_hash.get_digest (MDi);
@@ -2119,14 +2121,14 @@ auto test_vectors_drbg_no_reseed(const nist::cavs::test_vector_container_drbg_no
2119
2121
{
2120
2122
if (return_bits[i] != test_vector.result [i])
2121
2123
{
2122
- // LCOV_EXCL_START
2124
+
2123
2125
result_is_ok = false ;
2124
2126
std::cerr << " Error with vector: " << count
2125
2127
<< " \n Beginning of entropy: " << std::to_string (test_vector.initial_entropy [0 ]) << " , "
2126
2128
<< std::to_string (test_vector.initial_entropy [1 ]) << " , "
2127
2129
<< std::to_string (test_vector.initial_entropy [2 ]) << std::endl;
2128
2130
break ;
2129
- // LCOV_EXCL_STOP
2131
+
2130
2132
}
2131
2133
}
2132
2134
++count;
@@ -2166,14 +2168,14 @@ auto test_vectors_drbg_pr_false(const nist::cavs::test_vector_container_drbg_pr_
2166
2168
{
2167
2169
if (return_bits[i] != test_vector.result [i])
2168
2170
{
2169
- // LCOV_EXCL_START
2171
+
2170
2172
result_is_ok = false ;
2171
2173
std::cerr << " Error with vector: " << count
2172
2174
<< " \n Beginning of entropy: " << std::to_string (test_vector.initial_entropy [0 ]) << " , "
2173
2175
<< std::to_string (test_vector.initial_entropy [1 ]) << " , "
2174
2176
<< std::to_string (test_vector.initial_entropy [2 ]) << std::endl;
2175
2177
break ;
2176
- // LCOV_EXCL_STOP
2178
+
2177
2179
}
2178
2180
}
2179
2181
++count;
@@ -2212,14 +2214,14 @@ auto test_vectors_drbg_pr_true(const nist::cavs::test_vector_container_drbg_pr_t
2212
2214
{
2213
2215
if (return_bits[i] != test_vector.result [i])
2214
2216
{
2215
- // LCOV_EXCL_START
2217
+
2216
2218
result_is_ok = false ;
2217
2219
std::cerr << " Error with vector: " << count
2218
2220
<< " \n Beginning of entropy: " << std::to_string (test_vector.initial_entropy [0 ]) << " , "
2219
2221
<< std::to_string (test_vector.initial_entropy [1 ]) << " , "
2220
2222
<< std::to_string (test_vector.initial_entropy [2 ]) << std::endl;
2221
2223
break ;
2222
- // LCOV_EXCL_STOP
2224
+
2223
2225
}
2224
2226
}
2225
2227
++count;
@@ -2260,10 +2262,10 @@ auto test_vectors_aes_ctr(const nist::cavs::test_vector_container_aes &test_vect
2260
2262
2261
2263
if (plaintext != test_vector.plaintext )
2262
2264
{
2263
- // LCOV_EXCL_START
2265
+
2264
2266
result_is_ok = false ;
2265
2267
std::cerr << " Error with vector: " << count << std::endl;
2266
- // LCOV_EXCL_STOP
2268
+
2267
2269
}
2268
2270
2269
2271
++count;
@@ -2327,10 +2329,10 @@ auto test_vectors_aes_kat(const nist::cavs::test_vector_container_aes& test_vect
2327
2329
2328
2330
if (plaintext != ciphertext)
2329
2331
{
2330
- // LCOV_EXCL_START
2332
+
2331
2333
result_is_ok = false ;
2332
2334
std::cerr << " Error with vector: " << count << std::endl;
2333
- // LCOV_EXCL_STOP
2335
+
2334
2336
}
2335
2337
2336
2338
++count;
@@ -2393,10 +2395,10 @@ auto test_vectors_aes_mmt(const nist::cavs::test_vector_container_aes& test_vect
2393
2395
2394
2396
if (plaintext != ciphertext)
2395
2397
{
2396
- // LCOV_EXCL_START
2398
+
2397
2399
result_is_ok = false ;
2398
2400
std::cerr << " Error with vector: " << count << std::endl;
2399
- // LCOV_EXCL_STOP
2401
+
2400
2402
}
2401
2403
2402
2404
++count;
@@ -2521,10 +2523,10 @@ auto test_vectors_aes_mct(const nist::cavs::test_vector_container_aes& test_vect
2521
2523
2522
2524
if (plaintext != ciphertext)
2523
2525
{
2524
- // LCOV_EXCL_START
2526
+
2525
2527
result_is_ok = false ;
2526
2528
std::cerr << " Error with vector: " << count << std::endl;
2527
- // LCOV_EXCL_STOP
2529
+
2528
2530
}
2529
2531
2530
2532
++count;
@@ -2540,4 +2542,6 @@ auto test_vectors_aes_mct(const nist::cavs::test_vector_container_aes& test_vect
2540
2542
} // namespace cavs
2541
2543
} // namespace nist
2542
2544
2545
+ // LCOV_EXCL_STOP
2546
+
2543
2547
#endif // BOOST_CRYPT_TEST_NIST_CAVS_DETAIL_HPP
0 commit comments