diff options
| author | 2019-06-15 16:47:13 -0400 | |
|---|---|---|
| committer | 2019-06-15 16:47:13 -0400 | |
| commit | c140b6ae2ca6bc318f47b74a6946ddb10d282dbe (patch) | |
| tree | 6407b0465b93a7cfc0a5733e0d8dd3bb26742a15 /src/core/crypto/key_manager.cpp | |
| parent | Merge pull request #2582 from lioncash/reserved (diff) | |
| parent | common/hex_util: Reserve std::string memory ahead of time (diff) | |
| download | yuzu-c140b6ae2ca6bc318f47b74a6946ddb10d282dbe.tar.gz yuzu-c140b6ae2ca6bc318f47b74a6946ddb10d282dbe.tar.xz yuzu-c140b6ae2ca6bc318f47b74a6946ddb10d282dbe.zip | |
Merge pull request #2581 from lioncash/hex
common/hex_util: Combine HexVectorToString() and HexArrayToString()
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
| -rw-r--r-- | src/core/crypto/key_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp index dc006e2bb..6dd633363 100644 --- a/src/core/crypto/key_manager.cpp +++ b/src/core/crypto/key_manager.cpp | |||
| @@ -572,7 +572,7 @@ void KeyManager::WriteKeyToFile(KeyCategory category, std::string_view keyname, | |||
| 572 | << "# If you are experiencing issues involving keys, it may help to delete this file\n"; | 572 | << "# If you are experiencing issues involving keys, it may help to delete this file\n"; |
| 573 | } | 573 | } |
| 574 | 574 | ||
| 575 | file << fmt::format("\n{} = {}", keyname, Common::HexArrayToString(key)); | 575 | file << fmt::format("\n{} = {}", keyname, Common::HexToString(key)); |
| 576 | AttemptLoadKeyFile(yuzu_keys_dir, yuzu_keys_dir, filename, category == KeyCategory::Title); | 576 | AttemptLoadKeyFile(yuzu_keys_dir, yuzu_keys_dir, filename, category == KeyCategory::Title); |
| 577 | } | 577 | } |
| 578 | 578 | ||
| @@ -583,7 +583,7 @@ void KeyManager::SetKey(S128KeyType id, Key128 key, u64 field1, u64 field2) { | |||
| 583 | Key128 rights_id; | 583 | Key128 rights_id; |
| 584 | std::memcpy(rights_id.data(), &field2, sizeof(u64)); | 584 | std::memcpy(rights_id.data(), &field2, sizeof(u64)); |
| 585 | std::memcpy(rights_id.data() + sizeof(u64), &field1, sizeof(u64)); | 585 | std::memcpy(rights_id.data() + sizeof(u64), &field1, sizeof(u64)); |
| 586 | WriteKeyToFile(KeyCategory::Title, Common::HexArrayToString(rights_id), key); | 586 | WriteKeyToFile(KeyCategory::Title, Common::HexToString(rights_id), key); |
| 587 | } | 587 | } |
| 588 | 588 | ||
| 589 | auto category = KeyCategory::Standard; | 589 | auto category = KeyCategory::Standard; |