Switch to using the new app install flow
[chromium-blink-merge.git] / components / webcrypto / platform_crypto.h
blobfdb8cef4a7184c47a08b583362bdcf1b9b7f4e41
1 // 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.
5 #ifndef COMPONENTS_WEBCRYPTO_PLATFORM_CRYPTO_H_
6 #define COMPONENTS_WEBCRYPTO_PLATFORM_CRYPTO_H_
8 #include <stdint.h>
9 #include <vector>
11 #include "base/memory/scoped_ptr.h"
12 #include "third_party/WebKit/public/platform/WebCrypto.h"
14 // The definitions for these methods lives in either nss/ or openssl/
15 namespace webcrypto {
17 class AlgorithmImplementation;
19 void PlatformInit();
21 scoped_ptr<blink::WebCryptoDigestor> CreatePlatformDigestor(
22 blink::WebCryptoAlgorithmId algorithm);
24 AlgorithmImplementation* CreatePlatformShaImplementation();
25 AlgorithmImplementation* CreatePlatformAesCbcImplementation();
26 AlgorithmImplementation* CreatePlatformAesCtrImplementation();
27 AlgorithmImplementation* CreatePlatformAesGcmImplementation();
28 AlgorithmImplementation* CreatePlatformAesKwImplementation();
29 AlgorithmImplementation* CreatePlatformHmacImplementation();
30 AlgorithmImplementation* CreatePlatformRsaOaepImplementation();
31 AlgorithmImplementation* CreatePlatformRsaSsaImplementation();
32 AlgorithmImplementation* CreatePlatformRsaPssImplementation();
33 AlgorithmImplementation* CreatePlatformEcdsaImplementation();
34 AlgorithmImplementation* CreatePlatformEcdhImplementation();
35 AlgorithmImplementation* CreatePlatformHkdfImplementation();
36 AlgorithmImplementation* CreatePlatformPbkdf2Implementation();
38 } // namespace webcrypto
40 #endif // COMPONENTS_WEBCRYPTO_PLATFORM_CRYPTO_H_