From d5bb96c0f88b18c666e91479ccd12f530776e0c9 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 7 Mar 2018 19:24:52 +0100 Subject: [PATCH] Fix and with mask issue in smc_user.c --- exosphere/src/smc_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/src/smc_user.c b/exosphere/src/smc_user.c index e2235ea46..f6f669d2a 100644 --- a/exosphere/src/smc_user.c +++ b/exosphere/src/smc_user.c @@ -283,7 +283,7 @@ uint32_t user_generate_specific_aes_key(smc_args_t *args) { master_key_rev = args->X[3]; if (mkey_get_revision() < MASTERKEY_REVISION_400_CURRENT) { - master_key_rev &= MASK(32); + master_key_rev &= 0xFFFFFFFF; } if (master_key_rev > MASTERKEY_REVISION_MAX) { return 2;