blob: a6bea01f63f632c8060491b3af410b8a5826b8b0 [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
8#include "base/memory/scoped_ptr.h"
9#include "third_party/WebKit/public/platform/WebCrypto.h"
10
11// The definitions for these functions live in the algorithms/ directory.
12namespace webcrypto {
13
14class AlgorithmImplementation;
15
16scoped_ptr<blink::WebCryptoDigestor> CreateDigestorImplementation(
17 blink::WebCryptoAlgorithmId algorithm);
18
19scoped_ptr<AlgorithmImplementation> CreateShaImplementation();
20scoped_ptr<AlgorithmImplementation> CreateAesCbcImplementation();
21scoped_ptr<AlgorithmImplementation> CreateAesCtrImplementation();
22scoped_ptr<AlgorithmImplementation> CreateAesGcmImplementation();
23scoped_ptr<AlgorithmImplementation> CreateAesKwImplementation();
24scoped_ptr<AlgorithmImplementation> CreateHmacImplementation();
25scoped_ptr<AlgorithmImplementation> CreateRsaOaepImplementation();
26scoped_ptr<AlgorithmImplementation> CreateRsaSsaImplementation();
27scoped_ptr<AlgorithmImplementation> CreateRsaPssImplementation();
28scoped_ptr<AlgorithmImplementation> CreateEcdsaImplementation();
29scoped_ptr<AlgorithmImplementation> CreateEcdhImplementation();
30scoped_ptr<AlgorithmImplementation> CreateHkdfImplementation();
31scoped_ptr<AlgorithmImplementation> CreatePbkdf2Implementation();
32
33} // namespace webcrypto
34
35#endif // COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_