summaryrefslogtreecommitdiff
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-rw-r--r--src/core/crypto/key_manager.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index 1f0d3170b..da15f764a 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -143,7 +143,6 @@ u64 GetSignatureTypeDataSize(SignatureType type) {
143 return 0x3C; 143 return 0x3C;
144 } 144 }
145 UNREACHABLE(); 145 UNREACHABLE();
146 return 0;
147} 146}
148 147
149u64 GetSignatureTypePaddingSize(SignatureType type) { 148u64 GetSignatureTypePaddingSize(SignatureType type) {
@@ -158,7 +157,6 @@ u64 GetSignatureTypePaddingSize(SignatureType type) {
158 return 0x40; 157 return 0x40;
159 } 158 }
160 UNREACHABLE(); 159 UNREACHABLE();
161 return 0;
162} 160}
163 161
164SignatureType Ticket::GetSignatureType() const { 162SignatureType Ticket::GetSignatureType() const {
@@ -173,7 +171,6 @@ SignatureType Ticket::GetSignatureType() const {
173 } 171 }
174 172
175 UNREACHABLE(); 173 UNREACHABLE();
176 return {};
177} 174}
178 175
179TicketData& Ticket::GetData() { 176TicketData& Ticket::GetData() {
@@ -351,7 +348,7 @@ std::optional<Key128> DeriveSDSeed() {
351 std::array<u8, 0x10> buffer{}; 348 std::array<u8, 0x10> buffer{};
352 std::size_t offset = 0; 349 std::size_t offset = 0;
353 for (; offset + 0x10 < save_43.GetSize(); ++offset) { 350 for (; offset + 0x10 < save_43.GetSize(); ++offset) {
354 if (!save_43.Seek(static_cast<s64>(offset), SEEK_SET)) { 351 if (!save_43.Seek(offset, SEEK_SET)) {
355 return std::nullopt; 352 return std::nullopt;
356 } 353 }
357 354
@@ -361,7 +358,7 @@ std::optional<Key128> DeriveSDSeed() {
361 } 358 }
362 } 359 }
363 360
364 if (!save_43.Seek(static_cast<s64>(offset + 0x10), SEEK_SET)) { 361 if (!save_43.Seek(offset + 0x10, SEEK_SET)) {
365 return std::nullopt; 362 return std::nullopt;
366 } 363 }
367 364