summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfp/amiibo_crypto.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-03-12 04:10:38 +0100
committerLiam <byteslice@airmail.cc>2023-03-12 16:33:01 +0100
commit600f325d87e42f856da58c42a5280f098ebb6e8c (patch)
tree75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/core/hle/service/nfp/amiibo_crypto.cpp
parentgeneral: use codespell to identify spelling mistakes (diff)
downloadyuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.gz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.bz2
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.lz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.xz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.zst
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.zip
Diffstat (limited to 'src/core/hle/service/nfp/amiibo_crypto.cpp')
-rw-r--r--src/core/hle/service/nfp/amiibo_crypto.cpp2
1 files changed, 1 insertions, 1 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) {
}
u32 GetTagPassword(const TagUuid& uuid) {
- // Verifiy that the generated password is correct
+ // Verify that the generated password is correct
u32 password = 0xAA ^ (uuid.uid[1] ^ uuid.uid[3]);
password &= (0x55 ^ (uuid.uid[2] ^ uuid.uid[4])) << 8;
password &= (0xAA ^ (uuid.uid[3] ^ uuid.uid[5])) << 16;