mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
sealedkeys: Fix compilation issues (#39)
* sealedkeys: Remove non-existent variable in condition in seal_titlekey * sealedkeys: call unseal_key_internal in unseal_key instead of seal_key_internal
This commit is contained in:
parent
91d1b047c4
commit
0ec1ceca1f
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ void unseal_key_internal(unsigned int keyslot, const void *src, const uint8_t *s
|
|||
|
||||
|
||||
void seal_titlekey(void *dst, size_t dst_size, const void *src, size_t src_size) {
|
||||
if (usecase >= CRYPTOUSECASE_MAX || dst_size != 0x10 || src_size != 0x10) {
|
||||
if (dst_size != 0x10 || src_size != 0x10) {
|
||||
panic();
|
||||
}
|
||||
|
||||
|
@ -59,5 +59,5 @@ void unseal_key(unsigned int keyslot, const void *src, size_t src_size, unsigned
|
|||
panic();
|
||||
}
|
||||
|
||||
seal_key_internal(dst, src, g_seal_key_sources[usecase]);
|
||||
unseal_key_internal(keyslot, src, g_seal_key_sources[usecase]);
|
||||
}
|
Loading…
Reference in a new issue