Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
1fb27ca9
Commit
1fb27ca9
authored
Jul 26, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
->utf8
parent
3c43b372
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
OfficeCryptReader/source/CryptTransform.cpp
OfficeCryptReader/source/CryptTransform.cpp
+2
-2
OfficeCryptReader/source/CryptTransform.h
OfficeCryptReader/source/CryptTransform.h
+1
-1
OfficeCryptReader/source/ECMACryptReader.cpp
OfficeCryptReader/source/ECMACryptReader.cpp
+3
-3
OfficeCryptReader/source/ECMACryptReader.h
OfficeCryptReader/source/ECMACryptReader.h
+1
-1
No files found.
OfficeCryptReader/source/CryptTransform.cpp
View file @
1fb27ca9
/*
/*
* (c) Copyright Ascensio System SIA 2010-2016
*
* This program is a free software product. You can redistribute it and/or
...
...
@@ -150,7 +150,7 @@ void CorrectHashSize(_buf & hashBuf, int size, unsigned char padding)
}
_buf
HashAppend
(
_buf
&
hashBuf
,
_buf
&
block
,
CRYPT_METHOD
::
_hashAlgorithm
algorithm
)
{
//todooo
{
//todooo
переделать
if
(
algorithm
==
CRYPT_METHOD
::
SHA1
)
{
CryptoPP
::
SHA1
hash
;
...
...
OfficeCryptReader/source/CryptTransform.h
View file @
1fb27ca9
/*
/*
* (c) Copyright Ascensio System SIA 2010-2016
*
* This program is a free software product. You can redistribute it and/or
...
...
OfficeCryptReader/source/ECMACryptReader.cpp
View file @
1fb27ca9
/*
/*
* (c) Copyright Ascensio System SIA 2010-2016
*
* This program is a free software product. You can redistribute it and/or
...
...
@@ -203,7 +203,7 @@ bool ECMACryptReader::DecryptOfficeFile(std::wstring file_name_inp, std::wstring
if
(
!
decryptor
.
SetPassword
(
password
))
return
false
;
//pStream = new POLE::Stream(pStorage, "DataSpaces/DataSpaceMap"); //
//pStream = new POLE::Stream(pStorage, "DataSpaces/DataSpaceMap"); //
савершенно ненужная инфа
//if (pStream)
//{
// _UINT32 size = 0;
...
...
@@ -235,7 +235,7 @@ bool ECMACryptReader::DecryptOfficeFile(std::wstring file_name_inp, std::wstring
pStream
->
read
(
data
,
lengthRead
);
decryptor
.
Decrypt
(
data
,
lengthRead
,
data_out
);
//todoo
decryptor
.
Decrypt
(
data
,
lengthRead
,
data_out
);
//todoo
сделать покусочное чтение декриптование
delete
pStream
;
if
(
data_out
)
...
...
OfficeCryptReader/source/ECMACryptReader.h
View file @
1fb27ca9
/*
/*
* (c) Copyright Ascensio System SIA 2010-2016
*
* This program is a free software product. You can redistribute it and/or
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment