mirror of
https://github.com/itzmeanjan/ml-kem.git
synced 2026-01-10 08:07:56 -05:00
Refactor KAT test runner functions, reducing lines of code
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "ml_kem/internals/poly/compression.hpp"
|
||||
#include "ml_kem/internals/utility/force_inline.hpp"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
// Decompression error that can happen for some given `d` s.t.
|
||||
@@ -10,7 +11,7 @@
|
||||
// See eq. 2 of Ml_kem specification
|
||||
// https://doi.org/10.6028/NIST.FIPS.203.ipd
|
||||
template<size_t d>
|
||||
static inline constexpr size_t
|
||||
forceinline constexpr size_t
|
||||
compute_error()
|
||||
{
|
||||
constexpr double t0 = static_cast<double>(ml_kem_field::Q);
|
||||
|
||||
Reference in New Issue
Block a user