spl.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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::SPL {
  6. SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "spl:") {
  7. static const FunctionInfo functions[] = {
  8. {0, nullptr, "GetConfig"},
  9. {1, nullptr, "ModularExponentiate"},
  10. {2, nullptr, "GenerateAesKek"},
  11. {3, nullptr, "LoadAesKey"},
  12. {4, nullptr, "GenerateAesKey"},
  13. {5, nullptr, "SetConfig"},
  14. {7, &SPL::GetRandomBytes, "GetRandomBytes"},
  15. {9, nullptr, "ImportLotusKey"},
  16. {10, nullptr, "DecryptLotusMessage"},
  17. {11, nullptr, "IsDevelopment"},
  18. {12, nullptr, "GenerateSpecificAesKey"},
  19. {13, nullptr, "DecryptDeviceUniqueData"},
  20. {14, nullptr, "DecryptAesKey"},
  21. {15, nullptr, "CryptAesCtr"},
  22. {16, nullptr, "ComputeCmac"},
  23. {17, nullptr, "ImportEsKey"},
  24. {18, nullptr, "UnwrapTitleKey"},
  25. {19, nullptr, "LoadTitleKey"},
  26. {20, nullptr, "PrepareEsCommonKey"},
  27. {21, nullptr, "AllocateAesKeyslot"},
  28. {22, nullptr, "DeallocateAesKeySlot"},
  29. {23, nullptr, "GetAesKeyslotAvailableEvent"},
  30. {24, nullptr, "SetBootReason"},
  31. {25, nullptr, "GetBootReason"},
  32. {26, nullptr, "DecryptAndStoreSslClientCertKey"},
  33. {27, nullptr, "ModularExponentiateWithSslClientCertKey"},
  34. {28, nullptr, "DecryptAndStoreDrmDeviceCertKey"},
  35. {29, nullptr, "ModularExponentiateWithDrmDeviceCertKey"},
  36. {30, nullptr, "ReencryptDeviceUniqueData "},
  37. {31, nullptr, "PrepareEsArchiveKey"}, // This is also GetPackage2Hash?
  38. {32, nullptr, "LoadPreparedAesKey"},
  39. };
  40. RegisterHandlers(functions);
  41. }
  42. SPL::~SPL() = default;
  43. } // namespace Service::SPL