xts_encryption_layer: Implement XTSEncryptionLayer

This commit is contained in:
Zach Hilman 2018-08-16 17:01:32 -04:00
parent 10e5356e9a
commit c4845df3d4
3 changed files with 81 additions and 1 deletions

View file

@ -178,7 +178,7 @@ VirtualFile NCA::Decrypt(NCASectionHeader s_header, VirtualFile in, u64 starting
return std::static_pointer_cast<VfsFile>(out);
}
case NCASectionCryptoType::XTS:
// TODO(DarkLordZach): Implement XTSEncryptionLayer.
// TODO(DarkLordZach): Find a test case for XTS-encrypted NCAs
default:
LOG_ERROR(Crypto, "called with unhandled crypto type={:02X}",
static_cast<u8>(s_header.raw.header.crypto_type));