From e1e38bcfc27a226928fc5874521bf987017e854f Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Wed, 29 Apr 2020 17:16:59 -0400 Subject: [PATCH] derp --- source/cert.h | 22 +++++++++++----------- source/utils.h | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/source/cert.h b/source/cert.h index 971ac94..ba044e4 100644 --- a/source/cert.h +++ b/source/cert.h @@ -26,26 +26,26 @@ #define CERT_MIN_SIZE 0x140 /* Equivalent to sizeof(CertSigHmac160PubKeyEcc480) */ typedef enum { - CertType_None = 0, - CertType_SigRsa4096_PubKeyRsa4096 = 1, - CertType_SigRsa4096_PubKeyRsa2048 = 2, + CertType_None = 0, + CertType_SigRsa4096_PubKeyRsa4096 = 1, + CertType_SigRsa4096_PubKeyRsa2048 = 2, CertType_SigRsa4096_PubKeyEcc480 = 3, - CertType_SigRsa2048_PubKeyRsa4096 = 4, - CertType_SigRsa2048_PubKeyRsa2048 = 5, + CertType_SigRsa2048_PubKeyRsa4096 = 4, + CertType_SigRsa2048_PubKeyRsa2048 = 5, CertType_SigRsa2048_PubKeyEcc480 = 6, CertType_SigEcc480_PubKeyRsa4096 = 7, CertType_SigEcc480_PubKeyRsa2048 = 8, - CertType_SigEcc480_PubKeyEcc480 = 9, - CertType_SigHmac160_PubKeyRsa4096 = 10, - CertType_SigHmac160_PubKeyRsa2048 = 11, + CertType_SigEcc480_PubKeyEcc480 = 9, + CertType_SigHmac160_PubKeyRsa4096 = 10, + CertType_SigHmac160_PubKeyRsa2048 = 11, CertType_SigHmac160_PubKeyEcc480 = 12 } CertType; /// Always stored using big endian byte order. typedef enum { - CertPubKeyType_Rsa4096 = 0, - CertPubKeyType_Rsa2048 = 1, - CertPubKeyType_Ecc480 = 2 + CertPubKeyType_Rsa4096 = 0, + CertPubKeyType_Rsa2048 = 1, + CertPubKeyType_Ecc480 = 2 } CertPubKeyType; typedef struct { diff --git a/source/utils.h b/source/utils.h index 3e4dc64..03fc1bd 100644 --- a/source/utils.h +++ b/source/utils.h @@ -45,12 +45,12 @@ #define TITLE_ADDON_BITMASK (u64)0xFFFFFFFFFFFF0000 -NX_INLINE u64 titleGetPatchIdFromApplicationId(u64 app_id) +NX_INLINE u64 titleGetPatchIdByApplicationId(u64 app_id) { return (app_id | TITLE_PATCH_BITMASK); } -NX_INLINE u64 titleGetApplicationIdFromPatchId(u64 patch_id) +NX_INLINE u64 titleGetApplicationIdByPatchId(u64 patch_id) { return (patch_id & ~TITLE_PATCH_BITMASK); }