implementation fixes

cleaned AES interface, corrected some header files, other misc
This commit is contained in:
applestash
2014-09-07 21:10:55 +10:00
parent 030b638c92
commit 6d3ad5cfe4
10 changed files with 83 additions and 232 deletions
+1 -3
View File
@@ -175,7 +175,5 @@ bool IsTmdContentEncrypted(tmd_content_chunk info)
bool ValidateTmdContent(u8 *data, tmd_content_chunk info)
{
u8 hash[32];
ctr_sha(data,GetTmdContentSize(info),hash,CTR_SHA_256);
return memcmp(hash,GetTmdContentHash(&info),32) == 0;
return VerifySha256(data, GetTmdContentSize(info), GetTmdContentHash(&info));
}