summaryrefslogtreecommitdiff
path: root/chromium/components/webcrypto/algorithm_implementations.h
blob: a6bea01f63f632c8060491b3af410b8a5826b8b0 (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
32
33
34
35
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_
#define COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_

#include "base/memory/scoped_ptr.h"
#include "third_party/WebKit/public/platform/WebCrypto.h"

// The definitions for these functions live in the algorithms/ directory.
namespace webcrypto {

class AlgorithmImplementation;

scoped_ptr<blink::WebCryptoDigestor> CreateDigestorImplementation(
    blink::WebCryptoAlgorithmId algorithm);

scoped_ptr<AlgorithmImplementation> CreateShaImplementation();
scoped_ptr<AlgorithmImplementation> CreateAesCbcImplementation();
scoped_ptr<AlgorithmImplementation> CreateAesCtrImplementation();
scoped_ptr<AlgorithmImplementation> CreateAesGcmImplementation();
scoped_ptr<AlgorithmImplementation> CreateAesKwImplementation();
scoped_ptr<AlgorithmImplementation> CreateHmacImplementation();
scoped_ptr<AlgorithmImplementation> CreateRsaOaepImplementation();
scoped_ptr<AlgorithmImplementation> CreateRsaSsaImplementation();
scoped_ptr<AlgorithmImplementation> CreateRsaPssImplementation();
scoped_ptr<AlgorithmImplementation> CreateEcdsaImplementation();
scoped_ptr<AlgorithmImplementation> CreateEcdhImplementation();
scoped_ptr<AlgorithmImplementation> CreateHkdfImplementation();
scoped_ptr<AlgorithmImplementation> CreatePbkdf2Implementation();

}  // namespace webcrypto

#endif  // COMPONENTS_WEBCRYPTO_ALGORITHM_IMPLEMENTATIONS_H_