citra/src/core/hle/service/ssl_c.h

29 lines
656 B
C
Raw Normal View History

2014-10-30 02:38:33 +01:00
// Copyright 2014 Citra Emulator Project
2014-12-17 06:38:14 +01:00
// Licensed under GPLv2 or any later version
2014-10-30 02:38:33 +01:00
// Refer to the license.txt file included.
#pragma once
#include <random>
2014-10-30 02:38:33 +01:00
#include "core/hle/service/service.h"
namespace Service {
namespace SSL {
2014-10-30 02:38:33 +01:00
class SSL_C final : public ServiceFramework<SSL_C> {
2014-10-30 02:38:33 +01:00
public:
SSL_C();
2014-12-21 20:52:10 +01:00
private:
void Initialize(Kernel::HLERequestContext& ctx);
void GenerateRandomData(Kernel::HLERequestContext& ctx);
// TODO: Implement a proper CSPRNG in the future when actual security is needed
std::mt19937 rand_gen;
2014-10-30 02:38:33 +01:00
};
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace SSL
} // namespace Service