mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
Fix and with mask issue in smc_user.c
This commit is contained in:
parent
22f6c27654
commit
d5bb96c0f8
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ uint32_t user_generate_specific_aes_key(smc_args_t *args) {
|
||||||
|
|
||||||
master_key_rev = args->X[3];
|
master_key_rev = args->X[3];
|
||||||
if (mkey_get_revision() < MASTERKEY_REVISION_400_CURRENT) {
|
if (mkey_get_revision() < MASTERKEY_REVISION_400_CURRENT) {
|
||||||
master_key_rev &= MASK(32);
|
master_key_rev &= 0xFFFFFFFF;
|
||||||
}
|
}
|
||||||
if (master_key_rev > MASTERKEY_REVISION_MAX) {
|
if (master_key_rev > MASTERKEY_REVISION_MAX) {
|
||||||
return 2;
|
return 2;
|
||||||
|
|
Loading…
Reference in a new issue