mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-21 10:25:08 -04:00
namespace sts -> namespace ams
namespace sts::ams -> ams::exosphere, ams::. This is to facilitate future use of ams:: namespace code in mesosphere, as we'll want to include ams::util, ams::result, ams::svc...
This commit is contained in:
parent
4059dc6187
commit
8cb77ac136
397 changed files with 968 additions and 926 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "spl_ctr_drbg.hpp"
|
||||
|
||||
namespace sts::spl::impl {
|
||||
namespace ams::spl::impl {
|
||||
|
||||
namespace {
|
||||
|
||||
|
@ -127,14 +127,14 @@ namespace sts::spl::impl {
|
|||
/* Initialization functionality. */
|
||||
void InitializeCtrDrbg() {
|
||||
u8 seed[CtrDrbg::SeedSize];
|
||||
STS_ASSERT(smc::GenerateRandomBytes(seed, sizeof(seed)) == smc::Result::Success);
|
||||
AMS_ASSERT(smc::GenerateRandomBytes(seed, sizeof(seed)) == smc::Result::Success);
|
||||
|
||||
g_drbg.Initialize(seed);
|
||||
}
|
||||
|
||||
void InitializeSeEvents() {
|
||||
u64 irq_num;
|
||||
STS_ASSERT(smc::GetConfig(&irq_num, 1, SplConfigItem_SecurityEngineIrqNumber) == smc::Result::Success);
|
||||
AMS_ASSERT(smc::GetConfig(&irq_num, 1, SplConfigItem_SecurityEngineIrqNumber) == smc::Result::Success);
|
||||
R_ASSERT(g_se_event.Initialize(irq_num));
|
||||
|
||||
R_ASSERT(g_se_keyslot_available_event.InitializeAsInterProcessEvent());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue