diff --git a/src/lib/kawashima/hca/CHcaCipherConverter.cpp b/src/lib/kawashima/hca/CHcaCipherConverter.cpp index 23299ed..f836089 100644 --- a/src/lib/kawashima/hca/CHcaCipherConverter.cpp +++ b/src/lib/kawashima/hca/CHcaCipherConverter.cpp @@ -159,7 +159,7 @@ CGSS_NS_BEGIN cipherFrom->Decrypt(blockBuffer, validDataSize); // Check magic piece of plain text. - CHcaData data(blockBuffer, hcaInfo.blockSize); + CHcaData data(blockBuffer, hcaInfo.blockSize, hcaInfo.blockSize); const auto magic = data.GetBit(16); if (magic != 0xffff) { char numberBuffer[20] = {0};