0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
openvpn3/openvpn/aws
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
..
awsca.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
awscreds.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
awshttp.hpp introduce base types for strong and weak RNGs 2023-11-22 04:49:31 +01:00
awspc.hpp introduce base types for strong and weak RNGs 2023-11-22 04:49:31 +01:00
awsrest.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
awsroute.hpp Add route tables manipulation functionality 2023-10-26 12:12:58 +00:00