diff options
author | Jack Lloyd <[email protected]> | 2018-03-10 17:26:04 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-10 17:27:36 -0500 |
commit | 7f6b26e934b9a6015d9bf1fa236d8409ae59cf9f (patch) | |
tree | de681b005648cc376a225eb27e04eae4dc622b95 /src/cli | |
parent | e742386cb340f4966e880168772975f9dd532a90 (diff) |
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()); |