summaryrefslogtreecommitdiffstats
blob: 7d1675f56ccb308df753c8d31263220280f92f0a (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-2017 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <Swiften/Base/API.h>
#include <Swiften/Crypto/CryptoProvider.h>

namespace Swift {
    class SWIFTEN_API CommonCryptoCryptoProvider : public CryptoProvider {
        public:
            CommonCryptoCryptoProvider();
            virtual ~CommonCryptoCryptoProvider() override;

            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;
    };
}