mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-05 09:52:39 +00:00
mbedTLS: run rename.pl script and fix errors
This commit is contained in:
parent
868eab0bf6
commit
063446c46f
13 changed files with 110 additions and 110 deletions
|
@ -10,7 +10,7 @@
|
|||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <polarssl/aes.h>
|
||||
#include <mbedtls/aes.h>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/FileUtil.h"
|
||||
|
@ -278,10 +278,10 @@ bool CNANDContentLoader::Initialize(const std::string& _rName)
|
|||
}
|
||||
void CNANDContentLoader::AESDecode(u8* _pKey, u8* _IV, u8* _pSrc, u32 _Size, u8* _pDest)
|
||||
{
|
||||
aes_context AES_ctx;
|
||||
mbedtls_aes_context AES_ctx;
|
||||
|
||||
aes_setkey_dec(&AES_ctx, _pKey, 128);
|
||||
aes_crypt_cbc(&AES_ctx, AES_DECRYPT, _Size, _IV, _pSrc, _pDest);
|
||||
mbedtls_aes_setkey_dec(&AES_ctx, _pKey, 128);
|
||||
mbedtls_aes_crypt_cbc(&AES_ctx, MBEDTLS_AES_DECRYPT, _Size, _IV, _pSrc, _pDest);
|
||||
}
|
||||
|
||||
void CNANDContentLoader::GetKeyFromTicket(u8* pTicket, u8* pTicketKey)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue