/* * This file is part of the optimized implementation of the Picnic signature scheme. * See the accompanying documentation for complete details. * * The code is provided under the MIT license, see LICENSE for * more details. * SPDX-License-Identifier: MIT */ #ifndef PICNIC_TEST_UTILS_H #define PICNIC_TEST_UTILS_H #include #if defined(__cplusplus) #include #include #include #include namespace { template void randomize_container(C& container) { std::uniform_int_distribution dist{ 0, std::numeric_limits::max()}; std::random_device rnd; std::default_random_engine eng(rnd()); std::generate(container.begin(), container.end(), [&dist, &eng] { return dist(eng); }); } } // namespace std::vector all_supported_parameters(); extern "C" { #endif picnic_params_t argument_to_params(const char* arg); #if defined(__cplusplus) } #endif #endif