summaryrefslogtreecommitdiffstats
blob: d0c982e0deadaa833d0a03a81a17c0cd5964358b (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
26
27
28
29
30
31
/*
 * Copyright (c) 2013-2017 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <memory>

#include <boost/noncopyable.hpp>

#include <Swiften/Crypto/CryptoProvider.h>

namespace Swift {
    class WindowsCryptoProvider : public CryptoProvider, public boost::noncopyable {
        public:
            WindowsCryptoProvider();
            virtual ~WindowsCryptoProvider();

            virtual Hash* createSHA1() override;
            virtual Hash* createMD5() override;
            virtual ByteArray getHMACSHA1(const SafeByteArray& key, const ByteArray& data) override;
            virtual ByteArray getHMACSHA1(const ByteArray& key, const ByteArray& data) override;
            virtual bool isMD5AllowedForCrypto() const override;

        private:
            struct Private;
            const std::unique_ptr<Private> p;
    };
}