spl.cpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/service/spl/spl.h"
  5. namespace Service {
  6. namespace SPL {
  7. SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "spl:") {
  8. static const FunctionInfo functions[] = {
  9. {0, nullptr, "GetConfig"},
  10. {1, nullptr, "UserExpMod"},
  11. {2, nullptr, "GenerateAesKek"},
  12. {3, nullptr, "LoadAesKey"},
  13. {4, nullptr, "GenerateAesKey"},
  14. {5, nullptr, "SetConfig"},
  15. {7, &SPL::GetRandomBytes, "GetRandomBytes"},
  16. {9, nullptr, "LoadSecureExpModKey"},
  17. {10, nullptr, "SecureExpMod"},
  18. {11, nullptr, "IsDevelopment"},
  19. {12, nullptr, "GenerateSpecificAesKey"},
  20. {13, nullptr, "DecryptPrivk"},
  21. {14, nullptr, "DecryptAesKey"},
  22. {15, nullptr, "DecryptAesCtr"},
  23. {16, nullptr, "ComputeCmac"},
  24. {17, nullptr, "LoadRsaOaepKey"},
  25. {18, nullptr, "UnwrapRsaOaepWrappedTitleKey"},
  26. {19, nullptr, "LoadTitleKey"},
  27. {20, nullptr, "UnwrapAesWrappedTitleKey"},
  28. {21, nullptr, "LockAesEngine"},
  29. {22, nullptr, "UnlockAesEngine"},
  30. {23, nullptr, "GetSplWaitEvent"},
  31. {24, nullptr, "SetSharedData"},
  32. {25, nullptr, "GetSharedData"},
  33. {26, nullptr, "ImportSslRsaKey"},
  34. {27, nullptr, "SecureExpModWithSslKey"},
  35. {28, nullptr, "ImportEsRsaKey"},
  36. {29, nullptr, "SecureExpModWithEsKey"},
  37. {30, nullptr, "EncryptManuRsaKeyForImport"},
  38. {31, nullptr, "GetPackage2Hash"},
  39. };
  40. RegisterHandlers(functions);
  41. }
  42. } // namespace SPL
  43. } // namespace Service