summaryrefslogtreecommitdiffstats
blob: a9ed32347652077b4c227f70872d3a765ff0474d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2013-2015 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <vector>

#include <Swiften/Base/API.h>
#include <Swiften/Base/ByteArray.h>
#include <Swiften/Base/SafeByteArray.h>

namespace Swift {
    class SWIFTEN_API Hash {
        public:
            virtual ~Hash();

            virtual Hash& update(const ByteArray& data) = 0;
            virtual Hash& update(const SafeByteArray& data) = 0;

            virtual std::vector<unsigned char> getHash() = 0;
    };
}