| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| | |
crypto: Add support for full key derivation
|
| | |
| |
| |
| | |
x
|
| | |
| |
| |
| | |
Keeps track of system files for key derivation
|
| | | |
|
| | |
| |
| |
| | |
Derives titlekeys
|
| | |
| |
| |
| | |
Derives master keys, game encryption keys, and package1/2 keys
|
| | | |
|
| | |
| |
| |
| | |
TSEC, SBK, BIS, and other Sources for proper derivation
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| | |
| | | |
kernel/process: Make CodeSet a regular non-inherited object
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These only exist to ferry data into a Process instance and end up going
out of scope quite early. Because of this, we can just make it a plain
struct for holding things and just std::move it into the relevant
function. There's no need to make this inherit from the kernel's Object
type.
|
| |\ \ \
| | | |
| | | | |
svc: Fix typos in sanitizing checks for MapMemory/UnmapMemory
|
| | |/ / |
|
| |\ \ \
| | | |
| | | | |
Fixed incorrect types for svcBreak
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
signal_debugger seems like a more fitting name
|
| | | | |
| | | |
| | | |
| | | | |
svcBreak reason should be a u32, not a u64.
|
| |\ \ \ \
| | | | |
| | | | | |
Passing an invalid nmap handle to Remap should throw an error
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Added error for invalid nmap handles
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
thread: Remove unnecessary memset from ResetThreadContext()
|
| | | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | | |
Regular value initialization is adequate here for zeroing out data. It
also has the benefit of not invoking undefined behavior if a non-trivial
type is ever added to the struct for whatever reason.
|
| |\ \ \ \ \
| |/ / / /
|/| | | | |
Added error codes for nvmap
|
| | | | | | |
|
| | |/ / / |
|
| |\ \ \ \
| | | | |
| | | | | |
HwOpus, Implemented DecodeInterleavedWithPerformance
|
| | |/ / /
| | | |
| | | |
| | | | |
Used by sonic ages
|
| |\ \ \ \
| | | | |
| | | | | |
svc: Add missing address range sanitizing checks to MapMemory/UnmapMemory
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds the missing address range checking that the service functions
do before attempting to map or unmap memory. Given that both service
functions perform the same set of checks in the same order, we can wrap
these into a function and just call it from both functions, which
deduplicates a little bit of code.
|
| |/ / / |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There's no real need to use a shared pointer in these cases, and only
makes object management more fragile in terms of how easy it would be to
introduce cycles. Instead, just do the simple thing of using a regular
pointer. Much of this is just a hold-over from citra anyways.
It also doesn't make sense from a behavioral point of view for a
process' thread to prolong the lifetime of the process itself (the
process is supposed to own the thread, not the other way around).
|
| |\ \ \
| | | |
| | | | |
ips_layer: Silence truncation and conversion warnings
|
| | | | |
| | | |
| | | |
| | | | |
Makes type conversions explicit to avoid compiler warnings.
|
| |\ \ \ \
| |_|/ /
|/| | | |
patch_manager: Return a std::unique_ptr from ParseControlNCA() and GetControlMetadata() instead of a std::shared_ptr
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
GetControlMetadata() instead of a std::shared_ptr
Neither of these functions require the use of shared ownership of the
returned pointer. This makes it more difficult to create reference
cycles with, and makes the interface more generic, as std::shared_ptr
instances can be created from a std::unique_ptr, but the vice-versa
isn't possible. This also alters relevant functions to take NCA
arguments by const reference rather than a const reference to a
std::shared_ptr. These functions don't alter the ownership of the memory
used by the NCA instance, so we can make the interface more generic by
not assuming anything about the type of smart pointer the NCA is
contained within and make it the caller's responsibility to ensure the
supplied NCA is valid.
|
| |\ \ \
| | | |
| | | | |
svcBreak, Signalling to the debugger should not kill execution
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
When loading NROs, svcBreak is called to signal to the debugger that a new "module" is loaded. As no debugger is technically attached we shouldn't be killing the programs execution.
|
| |\ \ \ \
| | | | |
| | | | | |
telemetry_session: Minor miscellaneous changes
|
| | | | | |
| | | | |
| | | | |
| | | | | |
There's no "func" parameter, so this can just be removed.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Prevents potential compilation issues in the future by including missing
headers for certain functions and types.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This isn't implemented anywhere, so it can just be removed.
|
| | | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
We don't need to potentially heap-allocate a std::string instance here,
given the data is known ahead of time. We can just place it within an
array and pass this to the mbedtls functions.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We can just compare the existing std::vector instance with a constexpr
std::array containing the desired match. This is lighter resource-wise,
as we don't need to allocate on the heap.
|