Changeset View
Changeset View
Standalone View
Standalone View
src/test/crypto_tests.cpp
Show All 15 Lines | |||||
#include <random.h> | #include <random.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <test/util/setup_common.h> | #include <test/util/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <openssl/aes.h> | |||||
#include <openssl/evp.h> | |||||
#include <vector> | #include <vector> | ||||
BOOST_FIXTURE_TEST_SUITE(crypto_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(crypto_tests, BasicTestingSetup) | ||||
template <typename Hasher, typename In, typename Out> | template <typename Hasher, typename In, typename Out> | ||||
static void TestVector(const Hasher &h, const In &in, const Out &out) { | static void TestVector(const Hasher &h, const In &in, const Out &out) { | ||||
Out hash; | Out hash; | ||||
BOOST_CHECK(out.size() == h.OUTPUT_SIZE); | BOOST_CHECK(out.size() == h.OUTPUT_SIZE); | ||||
▲ Show 20 Lines • Show All 1,042 Lines • Show Last 20 Lines |