diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-21 06:28:14 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-04-29 07:56:26 +0200 |
commit | 0a3ded1def24194b01c9f2849ed91af4954fbb5f (patch) | |
tree | a2d43051e46c108ac146b7813a0230e123bc8f26 /include/oox/crypto | |
parent | 5bd7713a6b7aa3ad0eaa7f535cd932c2a316acb5 (diff) |
replace oox internal hashing code with new comphelper code
Change-Id: I0e9363f6aa6f9d1011bc917645122408f9728ca2
Reviewed-on: https://gerrit.libreoffice.org/36794
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include/oox/crypto')
-rw-r--r-- | include/oox/crypto/CryptTools.hxx | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/oox/crypto/CryptTools.hxx b/include/oox/crypto/CryptTools.hxx index 84e4c485cb9d..d5bc5b95bda3 100644 --- a/include/oox/crypto/CryptTools.hxx +++ b/include/oox/crypto/CryptTools.hxx @@ -113,40 +113,6 @@ public: sal_uInt32 inputLength = 0) override; }; -class Digest final -{ -public: - enum DigestType - { - UNKNOWN, - SHA1, - SHA512 - }; - -private: - DigestType meType; - -#if USE_TLS_OPENSSL - EVP_MD_CTX* mpContext; -#endif - -#if USE_TLS_NSS - HASHContext* mpContext; -#endif - -public: - Digest(DigestType eType); - ~Digest(); - - void update(std::vector<sal_uInt8>& input); - void finalize(std::vector<sal_uInt8>& digest); - - sal_uInt32 getLength(); - - static bool sha1( std::vector<sal_uInt8>& digest, std::vector<sal_uInt8>& input); - static bool sha512(std::vector<sal_uInt8>& digest, std::vector<sal_uInt8>& input); -}; - } // namespace core } // namespace oox |