aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/chacha_rng
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated headers, make more headers internalJack Lloyd2020-11-061-0/+4
| | | | | | | | | Now modules default to internal headers instead of defaulting to public; making a new public API should be a visible and intentional choice. Brings the public header count from over 300 to around 150. Also removes the deprecated tls_blocking interface
* Refactor Stateful_RNG and add a lockJack Lloyd2020-09-122-32/+9
| | | | | | | | | This differs from our general practice of requiring external locks if multiple threads wish to use the same object, but reduces risk wrt incorrect usage causing catastrophic failure such as duplicating RNG outputs. See also #2397
* Add StreamCipher::write_keystreamJack Lloyd2018-08-081-3/+2
| | | | | Avoids the XOR operation. Only implemented for ChaCha20 currently, everything else defaults to memset-to-zero + xor-cipher
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-201-2/+2
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* More annotationsJack Lloyd2017-09-191-1/+1
|
* Reset the ChaCha key in clearJack Lloyd2017-08-031-0/+1
| | | | | This is not necessary for setup, but we want to zero the key out in the event someone calls clear explicitly.
* Add Stateful_RNG::reset_reseed_counterJack Lloyd2017-08-031-1/+1
| | | | Instead of giving subclasses access to the variable directly.
* Refactor stateful RNG tests to cover both HMAC_DRBG and ChaCha_RNGJack Lloyd2017-08-032-14/+21
|
* Add ChaCha_RNGJack Lloyd2017-08-033-0/+238