0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
openvpn3/openvpn/ws
Heiko Hund be3f20dc58 introduce base types for strong and weak RNGs
The need of having to call the assert_crypto() member function to ensure
that a cryptographically strong RNG is used where needed, was reported
as potentially insecure, since calling it manually can easily be missed.

In the commit the two new classes StrongRandomAPI and WeakRandomAPI are
introduced. They are to be used instead of just RandomAPI, unless it
doesn't matter what strength the RNG is.

All the places the assert_crypto() was called were converted to using
StrongRandomAPI instead. Also the RNGs for which assert_crypto() was not
throwing are now inheriting from StrongRandomAPI.

Variable names, which have the StrongRandomAPI type, but were called
prng, are changed to rng instead to follow the source code convention.

Signed-off-by: Heiko Hund <heiko@openvpn.net>
2023-11-22 04:49:31 +01:00
..
chunked.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
httpcli.hpp Improve names 2023-10-11 18:49:23 +02:00
httpcliset.hpp Addressed 2nd set of -Wconversion warnings 2023-08-21 13:51:50 +00:00
httpcommon.hpp httpcommon.hpp: Add missing cast from CONTENT_LENGTH_TYPE to size_t 2023-09-28 11:33:40 +02:00
httpcreds.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
httpserv.hpp Improve names 2023-10-11 18:49:23 +02:00
httpvpn.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
resolver_results.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
websocket.hpp introduce base types for strong and weak RNGs 2023-11-22 04:49:31 +01:00