2014-10-29 18:38:33 -07:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-16 21:38:14 -08:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-29 18:38:33 -07:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-06-22 08:52:24 -07:00
|
|
|
#include <random>
|
2014-10-29 18:38:33 -07:00
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
2018-09-22 05:23:08 -07:00
|
|
|
namespace Service::SSL {
|
2014-10-29 18:38:33 -07:00
|
|
|
|
2018-06-22 08:52:24 -07:00
|
|
|
class SSL_C final : public ServiceFramework<SSL_C> {
|
2014-10-29 18:38:33 -07:00
|
|
|
public:
|
2016-12-10 04:51:50 -08:00
|
|
|
SSL_C();
|
2014-12-21 11:52:10 -08:00
|
|
|
|
2018-06-22 08:52:24 -07: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-29 18:38:33 -07:00
|
|
|
};
|
|
|
|
|
2018-06-22 08:52:24 -07:00
|
|
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
|
|
|
|
2018-09-22 05:23:08 -07:00
|
|
|
} // namespace Service::SSL
|