SSL: Implement Initialize and RNG

This commit is contained in:
wheremyfoodat 2023-08-12 14:12:00 +03:00
parent fa91c4effb
commit b5c636875d
2 changed files with 54 additions and 1 deletions

View file

@ -4,12 +4,19 @@
#include "logger.hpp"
#include "memory.hpp"
#include <random>
class SSLService {
Handle handle = KernelHandles::SSL;
Memory& mem;
MAKE_LOG_FUNCTION(log, sslLogger)
std::mt19937 rng; // Use a Mersenne Twister for RNG since this service is supposed to have better rng than just rand()
bool initialized;
// Service commands
void initialize(u32 messagePointer);
void generateRandomData(u32 messagePointer);
public:
SSLService(Memory& mem) : mem(mem) {}