spl: implement CryptoService.

This commit is contained in:
Michael Scire
2019-04-24 21:00:39 -07:00
parent ccbab35deb
commit bfa84e27c1
12 changed files with 558 additions and 102 deletions

View File

@@ -21,7 +21,7 @@
#include "spl_types.hpp"
#include "spl_secmon_wrapper.hpp"
class GeneralService final : public IServiceObject {
class GeneralService : public IServiceObject {
private:
SecureMonitorWrapper *secmon_wrapper;
public:
@@ -30,7 +30,11 @@ class GeneralService final : public IServiceObject {
}
virtual ~GeneralService() { /* ... */ }
private:
protected:
SecureMonitorWrapper *GetSecureMonitorWrapper() const {
return this->secmon_wrapper;
}
protected:
/* Actual commands. */
virtual Result GetConfig(Out<u64> out, u32 which);
virtual Result ExpMod(OutPointerWithClientSize<u8> out, InPointer<u8> base, InPointer<u8> exp, InPointer<u8> mod);