diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-09-24 00:39:34 +0200 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-09-25 03:46:41 +0200 |
| commit | 063446c46ff743d458b43025056bd01988b57ff6 (patch) | |
| tree | dbc6b9730d748822a5067f50d9854040a795cc9a /Source/Core/DiscIO/NANDContentLoader.cpp | |
| parent | 868eab0bf62c45c69cde9575031dcf3f10c892cf (diff) | |
mbedTLS: run rename.pl script and fix errors
Diffstat (limited to 'Source/Core/DiscIO/NANDContentLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/NANDContentLoader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index c59bc8079e..8c9fd846e5 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -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) |
