mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 22:15:17 -04:00
sf: Change interface definition methodology (#1074)
* sf: Begin experimenting with new interface declaration format * sf: convert fs interfaces to new format * sf: finish conversion of libstrat to new definitions * sf: convert loader to new format * sf: convert spl to new format * sf: update ncm for new format * sf: convert pm to new format * sf: convert ro/sm to new format * sf: update fatal for new format * sf: support building dmnt under new scheme * sf: update ams.mitm for new format * sf: correct invocation def for pointer holder * fs: correct 10.x+ user bindings for Get*SpaceSize
This commit is contained in:
parent
94eb2195d3
commit
9fde97cfdd
190 changed files with 3220 additions and 3172 deletions
|
@ -14,42 +14,16 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include "spl_rsa_service.hpp"
|
||||
#include "spl_device_unique_data_service.hpp"
|
||||
|
||||
namespace ams::spl {
|
||||
|
||||
class SslService : public RsaService {
|
||||
class SslService : public DeviceUniqueDataService {
|
||||
public:
|
||||
SslService() : RsaService() { /* ... */ }
|
||||
virtual ~SslService() { /* ... */ }
|
||||
protected:
|
||||
/* Actual commands. */
|
||||
virtual Result ImportSslKey(const sf::InPointerBuffer &src, AccessKey access_key, KeySource key_source);
|
||||
virtual Result SslExpMod(const sf::OutPointerBuffer &out, const sf::InPointerBuffer &base, const sf::InPointerBuffer &mod);
|
||||
public:
|
||||
DEFINE_SERVICE_DISPATCH_TABLE {
|
||||
MAKE_SERVICE_COMMAND_META(GetConfig),
|
||||
MAKE_SERVICE_COMMAND_META(ExpMod),
|
||||
MAKE_SERVICE_COMMAND_META(SetConfig),
|
||||
MAKE_SERVICE_COMMAND_META(GenerateRandomBytes),
|
||||
MAKE_SERVICE_COMMAND_META(IsDevelopment),
|
||||
MAKE_SERVICE_COMMAND_META(SetBootReason, hos::Version_3_0_0),
|
||||
MAKE_SERVICE_COMMAND_META(GetBootReason, hos::Version_3_0_0),
|
||||
MAKE_SERVICE_COMMAND_META(GenerateAesKek),
|
||||
MAKE_SERVICE_COMMAND_META(LoadAesKey),
|
||||
MAKE_SERVICE_COMMAND_META(GenerateAesKey),
|
||||
MAKE_SERVICE_COMMAND_META(DecryptAesKey),
|
||||
MAKE_SERVICE_COMMAND_META(CryptAesCtr),
|
||||
MAKE_SERVICE_COMMAND_META(ComputeCmac),
|
||||
MAKE_SERVICE_COMMAND_META(AllocateAesKeyslot, hos::Version_2_0_0),
|
||||
MAKE_SERVICE_COMMAND_META(FreeAesKeyslot, hos::Version_2_0_0),
|
||||
MAKE_SERVICE_COMMAND_META(GetAesKeyslotAvailableEvent, hos::Version_2_0_0),
|
||||
MAKE_SERVICE_COMMAND_META(DecryptRsaPrivateKeyDeprecated, hos::Version_4_0_0, hos::Version_4_1_0),
|
||||
MAKE_SERVICE_COMMAND_META(DecryptRsaPrivateKey, hos::Version_5_0_0),
|
||||
MAKE_SERVICE_COMMAND_META(ImportSslKey, hos::Version_5_0_0),
|
||||
MAKE_SERVICE_COMMAND_META(SslExpMod, hos::Version_5_0_0),
|
||||
|
||||
};
|
||||
Result DecryptAndStoreSslClientCertKey(const sf::InPointerBuffer &src, AccessKey access_key, KeySource key_source);
|
||||
Result ModularExponentiateWithSslClientCertKey(const sf::OutPointerBuffer &out, const sf::InPointerBuffer &base, const sf::InPointerBuffer &mod);
|
||||
};
|
||||
static_assert(spl::impl::IsISslInterface<SslService>);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue