1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include <comphelper/comphelperdllapi.h>
15 namespace comphelper
{
27 class COMPHELPER_DLLPUBLIC Hash
30 std::unique_ptr
<HashImpl
> mpImpl
;
37 void update(const unsigned char* pInput
, size_t length
);
39 std::vector
<unsigned char> finalize();
41 static std::vector
<unsigned char> calculateHash(const unsigned char* pInput
, size_t length
, HashType eType
);
43 size_t getLength() const;
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */