mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 01:02:48 +01:00
Merge pull request #2595 from jonsn0w/patch-1
Update content_archive.cpp
This commit is contained in:
commit
908a5a00c5
1 changed files with 2 additions and 2 deletions
|
@ -452,13 +452,13 @@ VirtualFile NCA::Decrypt(const NCASectionHeader& s_header, VirtualFile in, u64 s
|
||||||
|
|
||||||
switch (s_header.raw.header.crypto_type) {
|
switch (s_header.raw.header.crypto_type) {
|
||||||
case NCASectionCryptoType::NONE:
|
case NCASectionCryptoType::NONE:
|
||||||
LOG_DEBUG(Crypto, "called with mode=NONE");
|
LOG_TRACE(Crypto, "called with mode=NONE");
|
||||||
return in;
|
return in;
|
||||||
case NCASectionCryptoType::CTR:
|
case NCASectionCryptoType::CTR:
|
||||||
// During normal BKTR decryption, this entire function is skipped. This is for the metadata,
|
// During normal BKTR decryption, this entire function is skipped. This is for the metadata,
|
||||||
// which uses the same CTR as usual.
|
// which uses the same CTR as usual.
|
||||||
case NCASectionCryptoType::BKTR:
|
case NCASectionCryptoType::BKTR:
|
||||||
LOG_DEBUG(Crypto, "called with mode=CTR, starting_offset={:016X}", starting_offset);
|
LOG_TRACE(Crypto, "called with mode=CTR, starting_offset={:016X}", starting_offset);
|
||||||
{
|
{
|
||||||
std::optional<Core::Crypto::Key128> key = {};
|
std::optional<Core::Crypto::Key128> key = {};
|
||||||
if (has_rights_id) {
|
if (has_rights_id) {
|
||||||
|
|
Loading…
Reference in a new issue