dolphin/Source/Core/Common/Crypto
Léo Lam fff1db9730 Common: Add Random utilities
This makes it easier to generate random numbers or fill a buffer with
random data in a cryptographically secure way.

This also replaces existing usages of RNG functions in the codebase:

* <random> is pretty hard to use correctly, and std::random_device does
  not give enough guarantees about its results (it's
  implementation-defined, non cryptographically secure and could be
  deterministic on some platforms).
  Doing things correctly is error prone and verbose.

* rand() is terrible and should not be used especially in crypto code.
2018-05-31 17:54:43 +02:00
..
AES.cpp IOS: Implement IOSC-like API 2017-05-02 23:49:22 +02:00
AES.h IOS: Implement IOSC-like API 2017-05-02 23:49:22 +02:00
bn.cpp bn: Use int instead of u32 for sizes 2018-05-20 19:59:26 +02:00
bn.h bn: Use int instead of u32 for sizes 2018-05-20 19:59:26 +02:00
ec.cpp Common: Add Random utilities 2018-05-31 17:54:43 +02:00
ec.h Move ECCSignature to Common::ec and give it a less confusing name 2018-05-27 14:01:38 +02:00