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_
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/
17 class AlgorithmImplementation
;
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_