diff options
author | Jack Lloyd <[email protected]> | 2018-03-10 18:30:53 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-10 18:30:53 -0500 |
commit | a06b9a4dd6172943c8ed4095128379a8fb87b04c (patch) | |
tree | 8e73705e8da3ac8b7b2c5b5692e52030b7cc93e9 /src/cli | |
parent | 5d66546778498c4b9eb5849ad0847eeff2805766 (diff) | |
parent | 425b1fd10b6eda9ce89a948ede9935d8c6604dc0 (diff) |
Merge GH #1485 Add new cli test script
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/cli_rng.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/cli_rng.cpp b/src/cli/cli_rng.cpp index 1e3ecb141..78af51314 100644 --- a/src/cli/cli_rng.cpp +++ b/src/cli/cli_rng.cpp @@ -66,11 +66,11 @@ cli_make_rng(const std::string& rng_type, const std::string& hex_drbg_seed) } #endif -#if defined(BOTAN_HAS_HMAC_DRBG) && defined(BOTAN_AUTO_RNG_HMAC) +#if defined(BOTAN_HAS_HMAC_DRBG) && defined(BOTAN_HAS_SHA2_32) if(rng_type == "drbg") { std::unique_ptr<Botan::MessageAuthenticationCode> mac = - Botan::MessageAuthenticationCode::create(BOTAN_AUTO_RNG_HMAC); + Botan::MessageAuthenticationCode::create_or_throw("HMAC(SHA-256)"); std::unique_ptr<Botan::Stateful_RNG> rng(new Botan::HMAC_DRBG(std::move(mac))); rng->add_entropy(drbg_seed.data(), drbg_seed.size()); |