From 73d8ebe6af84f816cc76a9695913fae4e898267d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=99=B9=E5=8E=9F=E3=81=A4=E3=81=B0=E3=81=95?= Date: Sat, 4 Mar 2017 15:02:08 +0800 Subject: [PATCH] fix V4 decryption --- src/V3_Decrypter.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/V3_Decrypter.cc b/src/V3_Decrypter.cc index 41eb391..21160d2 100644 --- a/src/V3_Decrypter.cc +++ b/src/V3_Decrypter.cc @@ -41,9 +41,9 @@ _jumpFunc(&jumpV3) throw std::runtime_error(std::string("Header file doesn't match.")); is_finalized = false; - init_key = (mctx.digestRaw[3] << 24) | - (mctx.digestRaw[2] << 16) | - (mctx.digestRaw[1] << 8) | mctx.digestRaw[0]; + init_key = (mctx.digestRaw[8] << 24) | + (mctx.digestRaw[9] << 16) | + (mctx.digestRaw[10] << 8) | mctx.digestRaw[11]; version = 3; }