diff options
| author | 2023-03-11 22:10:38 -0500 | |
|---|---|---|
| committer | 2023-03-12 11:33:01 -0400 | |
| commit | 600f325d87e42f856da58c42a5280f098ebb6e8c (patch) | |
| tree | 75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/core/hle/service/nfp | |
| parent | general: use codespell to identify spelling mistakes (diff) | |
| download | yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.gz yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.xz yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.zip | |
general: fix spelling mistakes
Diffstat (limited to 'src/core/hle/service/nfp')
| -rw-r--r-- | src/core/hle/service/nfp/amiibo_crypto.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nfp/amiibo_crypto.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nfp/amiibo_crypto.cpp b/src/core/hle/service/nfp/amiibo_crypto.cpp index ddf04b1d7..ad73edbda 100644 --- a/src/core/hle/service/nfp/amiibo_crypto.cpp +++ b/src/core/hle/service/nfp/amiibo_crypto.cpp | |||
| @@ -137,7 +137,7 @@ EncryptedNTAG215File EncodedDataToNfcData(const NTAG215File& encoded_data) { | |||
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | u32 GetTagPassword(const TagUuid& uuid) { | 139 | u32 GetTagPassword(const TagUuid& uuid) { |
| 140 | // Verifiy that the generated password is correct | 140 | // Verify that the generated password is correct |
| 141 | u32 password = 0xAA ^ (uuid.uid[1] ^ uuid.uid[3]); | 141 | u32 password = 0xAA ^ (uuid.uid[1] ^ uuid.uid[3]); |
| 142 | password &= (0x55 ^ (uuid.uid[2] ^ uuid.uid[4])) << 8; | 142 | password &= (0x55 ^ (uuid.uid[2] ^ uuid.uid[4])) << 8; |
| 143 | password &= (0xAA ^ (uuid.uid[3] ^ uuid.uid[5])) << 16; | 143 | password &= (0xAA ^ (uuid.uid[3] ^ uuid.uid[5])) << 16; |
diff --git a/src/core/hle/service/nfp/amiibo_crypto.h b/src/core/hle/service/nfp/amiibo_crypto.h index 1fa61174e..c9fd67a39 100644 --- a/src/core/hle/service/nfp/amiibo_crypto.h +++ b/src/core/hle/service/nfp/amiibo_crypto.h | |||
| @@ -94,7 +94,7 @@ bool LoadKeys(InternalKey& locked_secret, InternalKey& unfixed_info); | |||
| 94 | /// Returns true if key_retail.bin exist | 94 | /// Returns true if key_retail.bin exist |
| 95 | bool IsKeyAvailable(); | 95 | bool IsKeyAvailable(); |
| 96 | 96 | ||
| 97 | /// Decodes encripted amiibo data returns true if output is valid | 97 | /// Decodes encrypted amiibo data returns true if output is valid |
| 98 | bool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data); | 98 | bool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data); |
| 99 | 99 | ||
| 100 | /// Encodes plain amiibo data returns true if output is valid | 100 | /// Encodes plain amiibo data returns true if output is valid |