Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
982db648
Kaydet (Commit)
982db648
authored
Ock 01, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
workaround rather maddening endian-specific template bustage
Change-Id: I69dc97c93ef5efe8d71074ac3eca06a3bbc45253
üst
c6999ccf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
DocumentDecryption.cxx
oox/source/crypto/DocumentDecryption.cxx
+15
-2
Standard2007Engine.cxx
oox/source/crypto/Standard2007Engine.cxx
+1
-1
No files found.
oox/source/crypto/DocumentDecryption.cxx
Dosyayı görüntüle @
982db648
...
...
@@ -287,9 +287,22 @@ bool DocumentDecryption::readStandard2007EncryptionInfo(BinaryInputStream& rStre
if
(
(
nHeaderSize
<
actualHeaderSize
)
)
return
false
;
rStream
>>
info
.
header
;
rStream
>>
info
.
header
.
flags
;
rStream
>>
info
.
header
.
sizeExtra
;
rStream
>>
info
.
header
.
algId
;
rStream
>>
info
.
header
.
algIdHash
;
rStream
>>
info
.
header
.
keyBits
;
rStream
>>
info
.
header
.
providedType
;
rStream
>>
info
.
header
.
reserved1
;
rStream
>>
info
.
header
.
reserved2
;
rStream
.
skip
(
nHeaderSize
-
actualHeaderSize
);
rStream
>>
info
.
verifier
;
rStream
>>
info
.
verifier
.
saltSize
;
rStream
.
readArray
(
info
.
verifier
.
salt
,
SAL_N_ELEMENTS
(
info
.
verifier
.
salt
));
rStream
.
readArray
(
info
.
verifier
.
encryptedVerifier
,
SAL_N_ELEMENTS
(
info
.
verifier
.
encryptedVerifier
));
rStream
>>
info
.
verifier
.
encryptedVerifierHashSize
;
rStream
.
readArray
(
info
.
verifier
.
encryptedVerifierHash
,
SAL_N_ELEMENTS
(
info
.
verifier
.
encryptedVerifierHash
));
if
(
info
.
verifier
.
saltSize
!=
16
)
return
false
;
...
...
oox/source/crypto/Standard2007Engine.cxx
Dosyayı görüntüle @
982db648
...
...
@@ -129,7 +129,7 @@ bool Standard2007Engine::calculateEncryptionKey(const OUString& rPassword)
// data = iterator (4bytes) + hash
vector
<
sal_uInt8
>
data
(
RTL_DIGEST_LENGTH_SHA1
+
4
,
0
);
for
(
int
i
=
0
;
i
<
50000
;
i
++
)
for
(
sal_Int32
i
=
0
;
i
<
50000
;
++
i
)
{
ByteOrderConverter
::
writeLittleEndian
(
&
data
[
0
],
i
);
std
::
copy
(
hash
.
begin
(),
hash
.
end
(),
data
.
begin
()
+
4
);
...
...
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