blob: ad228710b04f94f58ac526dbdf52441a032876f3 [file] [log] [blame]
eromand62cb472015-09-18 18:24:231// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_
6#define COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_
7
dcheng7036d1e52016-04-21 23:13:038#include <memory>
9
eromand62cb472015-09-18 18:24:2310#include "third_party/WebKit/public/platform/WebCrypto.h"
11
12// The definitions for these functions live in the algorithms/ directory.
13namespace webcrypto {
14
15class AlgorithmImplementation;
16
dcheng7036d1e52016-04-21 23:13:0317std::unique_ptr<blink::WebCryptoDigestor> CreateDigestorImplementation(
eromand62cb472015-09-18 18:24:2318 blink::WebCryptoAlgorithmId algorithm);
19
dcheng7036d1e52016-04-21 23:13:0320std::unique_ptr<AlgorithmImplementation> CreateShaImplementation();
21std::unique_ptr<AlgorithmImplementation> CreateAesCbcImplementation();
22std::unique_ptr<AlgorithmImplementation> CreateAesCtrImplementation();
23std::unique_ptr<AlgorithmImplementation> CreateAesGcmImplementation();
24std::unique_ptr<AlgorithmImplementation> CreateAesKwImplementation();
25std::unique_ptr<AlgorithmImplementation> CreateHmacImplementation();
26std::unique_ptr<AlgorithmImplementation> CreateRsaOaepImplementation();
27std::unique_ptr<AlgorithmImplementation> CreateRsaSsaImplementation();
28std::unique_ptr<AlgorithmImplementation> CreateRsaPssImplementation();
29std::unique_ptr<AlgorithmImplementation> CreateEcdsaImplementation();
30std::unique_ptr<AlgorithmImplementation> CreateEcdhImplementation();
31std::unique_ptr<AlgorithmImplementation> CreateHkdfImplementation();
32std::unique_ptr<AlgorithmImplementation> CreatePbkdf2Implementation();
eromand62cb472015-09-18 18:24:2333
34} // namespace webcrypto
35
36#endif // COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_