mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Compiled version
This commit is contained in:
@ -52,8 +52,7 @@
|
||||
#include "../../Common/3dParty/cryptopp/zdeflate.h"
|
||||
|
||||
#include "../../Common/DocxFormat/Source/Base/unicode_util.h"
|
||||
#include "../../Common/DocxFormat/Source/Base/Base.h"
|
||||
#include "../../Common/DocxFormat/Source/XML/Utils.h"
|
||||
#include "../../Common/DocxFormat/Source/Base/Unit.h"
|
||||
|
||||
#include "../../DesktopEditor/common/File.h"
|
||||
static const unsigned char encrVerifierHashInputBlockKey[8] = { 0xfe, 0xa7, 0xd2, 0x76, 0x3b, 0x4b, 0x9e, 0x79 };
|
||||
@ -900,7 +899,7 @@ bool ECMAWriteProtect::VerifyWrike()
|
||||
wPasswordHash ^= (0x8000 | ('N' << 8) | 'K');
|
||||
wPasswordHash ^= p.length();
|
||||
|
||||
std::string sPasswordHash = XmlUtils::IntToString(wPasswordHash, "%4.4X");
|
||||
std::string sPasswordHash = XmlUtils::ToString(wPasswordHash, "%4.4X");
|
||||
|
||||
return data.hashValue == sPasswordHash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user