summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-20 13:41:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-20 13:41:03 +0100
commit491884350ce74f36044b3348bd66356ad1c234af (patch)
tree20e8b289a5becc8c9c93e9f4419e8535145703f9 /include
parentfcf7f503b64b2cf7dbef019fb43dde033e3538e8 (diff)
hash len is 20 for xls cryptoapi configuration
Change-Id: I6e06b8578959b8147043179db57e875b1d98d57d
Diffstat (limited to 'include')
-rw-r--r--include/oox/crypto/Standard2007Engine.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/oox/crypto/Standard2007Engine.hxx b/include/oox/crypto/Standard2007Engine.hxx
index 39ce89466ccc..b4130539e57c 100644
--- a/include/oox/crypto/Standard2007Engine.hxx
+++ b/include/oox/crypto/Standard2007Engine.hxx
@@ -52,7 +52,8 @@ const sal_uInt32 VERSION_INFO_AGILE = 0x00040004;
const sal_uInt32 SALT_LENGTH = 16;
const sal_uInt32 ENCRYPTED_VERIFIER_LENGTH = 16;
-const sal_uInt32 ENCRYPTED_VERIFIER_HASH_LENGTH = 32;
+const sal_uInt32 ENCRYPTED_RC4_VERIFIER_HASH_LENGTH = 20;
+const sal_uInt32 ENCRYPTED_AES_VERIFIER_HASH_LENGTH = 32;
struct EncryptionStandardHeader
{
@@ -74,7 +75,7 @@ struct EncryptionVerifierAES
sal_uInt8 salt[SALT_LENGTH]; // random generated salt value
sal_uInt8 encryptedVerifier[ENCRYPTED_VERIFIER_LENGTH]; // randomly generated verifier value
sal_uInt32 encryptedVerifierHashSize; // actually written hash size - depends on algorithm
- sal_uInt8 encryptedVerifierHash[ENCRYPTED_VERIFIER_HASH_LENGTH]; // verifier value hash - itself also encrypted
+ sal_uInt8 encryptedVerifierHash[ENCRYPTED_AES_VERIFIER_HASH_LENGTH]; // verifier value hash - itself also encrypted
EncryptionVerifierAES();
};