aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/hmac_drbg/hmac_drbg.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-07-06 14:09:55 -0400
committerJack Lloyd <[email protected]>2016-07-17 10:43:42 -0400
commit8f2f800c7ea841fa5ab963349178ac3a9f56a513 (patch)
tree6bfd690f9add2e5196f5c2cb4556407332091329 /src/lib/rng/hmac_drbg/hmac_drbg.h
parentd7864303e89a5e04294f8efd1d0e4ac26a1491e5 (diff)
Address some review comments from @cordney
Use consistent naming for the max output before reseed parameter. The constant (default) value is renamed to BOTAN_RNG_DEFAULT_MAX_OUTPUT_BEFORE_RESEED, since without the DEFAULT_ it reads like a compile time maximum instead. Use uint8_t instead of byte.
Diffstat (limited to 'src/lib/rng/hmac_drbg/hmac_drbg.h')
-rw-r--r--src/lib/rng/hmac_drbg/hmac_drbg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/rng/hmac_drbg/hmac_drbg.h b/src/lib/rng/hmac_drbg/hmac_drbg.h
index 8ee598470..0e294dbdb 100644
--- a/src/lib/rng/hmac_drbg/hmac_drbg.h
+++ b/src/lib/rng/hmac_drbg/hmac_drbg.h
@@ -23,10 +23,10 @@ class BOTAN_DLL HMAC_DRBG final : public Stateful_RNG
* Initialize an HMAC_DRBG instance with the given hash function
*/
HMAC_DRBG(const std::string& hmac_hash,
- size_t max_bytes_before_reseed = BOTAN_RNG_MAX_OUTPUT_BEFORE_RESEED);
+ size_t max_output_before_reseed = BOTAN_RNG_DEFAULT_MAX_OUTPUT_BEFORE_RESEED);
HMAC_DRBG(MessageAuthenticationCode* hmac,
- size_t max_bytes_before_reseed = BOTAN_RNG_MAX_OUTPUT_BEFORE_RESEED);
+ size_t max_output_before_reseed = BOTAN_RNG_DEFAULT_MAX_OUTPUT_BEFORE_RESEED);
std::string name() const override;