diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-07-14 21:16:07 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-07-15 09:16:05 +0200 |
commit | 4fcd42afd3ba92f909b48be72c9392314689ec89 (patch) | |
tree | d5d21339948547909bd3f1afb81249d89fc28921 /svl/source | |
parent | 96ada688eaf7454791a5d8f8e0abe68e2c417e26 (diff) |
comphelper: don't hardcode hash sizes in Hash::getLength()
Instead move the constants from filter to comphelper and reuse them.
Change-Id: Ib7061e9028ccf6067b4e86f50145c1472c2b01d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98785
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/crypto/cryptosign.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx index 573c06ba5826..25120d7cd6e5 100644 --- a/svl/source/crypto/cryptosign.cxx +++ b/svl/source/crypto/cryptosign.cxx @@ -2061,15 +2061,15 @@ bool Signing::Verify(const std::vector<unsigned char>& aData, switch (eOidTag) { case SEC_OID_SHA1: - nMaxResultLen = msfilter::SHA1_HASH_LENGTH; + nMaxResultLen = comphelper::SHA1_HASH_LENGTH; rInformation.nDigestID = xml::crypto::DigestID::SHA1; break; case SEC_OID_SHA256: - nMaxResultLen = msfilter::SHA256_HASH_LENGTH; + nMaxResultLen = comphelper::SHA256_HASH_LENGTH; rInformation.nDigestID = xml::crypto::DigestID::SHA256; break; case SEC_OID_SHA512: - nMaxResultLen = msfilter::SHA512_HASH_LENGTH; + nMaxResultLen = comphelper::SHA512_HASH_LENGTH; rInformation.nDigestID = xml::crypto::DigestID::SHA512; break; default: |