blob: f7812c116cf70837717aeb836444565698ca6a1d (
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 Isode Limited.
* All rights reserved.
* 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;
};
}
|