Ice 3.7 C++11 API Reference
Loading...
Searching...
No Matches
SHA1.h
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4
5#ifndef ICE_SHA1_H
6#define ICE_SHA1_H
7
8#include <Ice/Config.h>
9#include <Ice/UniquePtr.h>
10
11#include <vector>
12
13namespace IceInternal
14{
15
16ICE_API void
17sha1(const unsigned char*, std::size_t, std::vector<unsigned char>&);
18
19class ICE_API SHA1
20{
21public:
22
23 SHA1();
24 ~SHA1();
25
26 void update(const unsigned char*, std::size_t);
27 void finalize(std::vector<unsigned char>&);
28
29private:
30
31 // noncopyable
32 SHA1(const SHA1&);
33 SHA1 operator=(const SHA1&);
34
35 class Hasher;
36 UniquePtr<Hasher> _hasher;
37};
38
39}
40#endif
#define ICE_API
Definition Config.h:197