blob: 37c6ec82117c26671f7b0b6c1bbc6561971f0eee (
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
|
/*
* Copyright (c) 2013 Remko Tronçon
* Licensed under the GNU General Public License.
* See the COPYING file for more information.
*/
#pragma once
#include <vector>
#include <Swiften/Base/ByteArray.h>
#include <Swiften/Base/SafeByteArray.h>
namespace Swift {
class 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;
};
}
|