diff options
author | lloyd <[email protected]> | 2015-03-12 11:48:27 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-03-12 11:48:27 +0000 |
commit | ff26efb1c4b8530024dc9b42d75e39536ece6e11 (patch) | |
tree | 8f76ffab672673222b1c2bd8121c40fa2d765e62 /src/tests/tests.h | |
parent | a06d7288968e205ca5f4df7cb3fcb3914353fb5f (diff) |
Externalize the state of a RFC 6979 nonce computation.
This lets you amortize quite a few memory allocations (RNG, various
BigInts, etc) over many nonce generations.
Change generate_rfc6979_nonce to just instantiate one of these states,
call the function once, and return. This doesn't have any additional
overhead versus the previous implementation of this function.
Fix HMAC_DRBG to correctly reset its state to its starting position
when you call clear() on it.
Diffstat (limited to 'src/tests/tests.h')
-rw-r--r-- | src/tests/tests.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h index 43ed1dbd5..a51f6742f 100644 --- a/src/tests/tests.h +++ b/src/tests/tests.h @@ -34,7 +34,6 @@ size_t run_tests(const std::string& filename, bool clear_between_cb, std::function<std::string (std::map<std::string, std::string>)> cb); -std::vector<std::string> list_dir(const std::string& dir_path); size_t run_tests_in_dir(const std::string& dir, std::function<size_t (const std::string&)> fn); // Run a list of tests |