summaryrefslogtreecommitdiff
path: root/utils/zenutils/source/zen_crypt/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/zenutils/source/zen_crypt/main.cpp')
-rw-r--r--utils/zenutils/source/zen_crypt/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/zenutils/source/zen_crypt/main.cpp b/utils/zenutils/source/zen_crypt/main.cpp
index 84fee89bd2..5e596d8c91 100644
--- a/utils/zenutils/source/zen_crypt/main.cpp
+++ b/utils/zenutils/source/zen_crypt/main.cpp
@@ -47,7 +47,7 @@ struct player_info_t
47{ 47{
48 const char* name; 48 const char* name;
49 const char* null_key; // HMAC-SHA1 key 49 const char* null_key; // HMAC-SHA1 key
50 const char* fresc_key_v1; // BlowFish key 50 const char* fresc_key; // BlowFish key
51 const char* tl_key; // BlowFish key 51 const char* tl_key; // BlowFish key
52 bool big_endian; 52 bool big_endian;
53}; 53};
@@ -469,7 +469,7 @@ bool decrypt(shared::bytes& data, int mode, player_info_t* pi,
469 std::cout << "[*] Decrypting input file..." << std::endl; 469 std::cout << "[*] Decrypting input file..." << std::endl;
470 470
471 dword iv[2] = {shared::swap(data.size()), 0}; 471 dword iv[2] = {shared::swap(data.size()), 0};
472 if (!zen::bf_cbc_decrypt((const byte*)pi->fresc_key_v1, 472 if (!zen::bf_cbc_decrypt((const byte*)pi->fresc_key,
473 strlen(pi->fresc_key_v1)+1, &data[0], 473 strlen(pi->fresc_key_v1)+1, &data[0],
474 data.size(), (const byte*)iv)) 474 data.size(), (const byte*)iv))
475 { 475 {