aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/rdrand_rng/rdrand_rng.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use RDRAND in such a way that an internal reseed is performedJack Lloyd2019-08-161-82/+62
| | | | | | At least according to Intel's docs. Closes #447
* Use 64-bit RDRAND on x86-64Jack Lloyd2019-07-051-3/+47
| | | | | | | | This doubles RDRAND performance on 64-bit systems. Based on a patch from Jeffrey Walton in #934 Closes #934
* Make exceptions easier to translate to error codesJack Lloyd2018-11-231-1/+1
| | | | | | | | | | | Avoid throwing base Botan::Exception type, as it is difficult to determine what the error is in that case. Add Exception::error_code and Exception::error_type which allows (for error code) more information about the error and (for error type) allows knowing the error type without requiring a sequence of catches. See GH #1742
* Expose RDRAND RNG through FFIJack Lloyd2018-08-131-1/+7
|
* Add explicit tests for RDRAND_RNG and System_RNGJack Lloyd2017-08-031-9/+7
|
* Avoid having source files start with /**Jack Lloyd2016-11-251-1/+1
| | | | | | | This caused Doxygen to dump the copyright notices for those files into the Botan namespace description, which is not helpful. [ci skip]
* Add ISA annotations to functions using SIMD, AES, etcJack Lloyd2016-10-141-0/+1
| | | | | | | | Also emit `#pragma GCC target` in the ISA specific amalgamation files. This allows compiling without any special compiler flags, at least with GCC 6.2 and Clang 3.8. The ISA annotations are ignored in MSVC, which just emits whatever instruction the intrinsic requires.
* Add RDRAND_RNGJack Lloyd2016-07-191-0/+84
For those that are willing to trust uninspectible hardware. :) Changes RDRAND entropy source to call RDRAND_RNG Add --rdrand flag to rng cmdlet