Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: components/webcrypto/platform_crypto.h

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/webcrypto/openssl/util_openssl.cc ('k') | components/webcrypto/status.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ 5 #ifndef COMPONENTS_WEBCRYPTO_PLATFORM_CRYPTO_H_
6 #define CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ 6 #define COMPONENTS_WEBCRYPTO_PLATFORM_CRYPTO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "third_party/WebKit/public/platform/WebCrypto.h" 12 #include "third_party/WebKit/public/platform/WebCrypto.h"
13 13
14 // The definitions for these methods lives in either nss/ or openssl/ 14 // The definitions for these methods lives in either nss/ or openssl/
15 namespace content {
16
17 namespace webcrypto { 15 namespace webcrypto {
18 16
19 class AlgorithmImplementation; 17 class AlgorithmImplementation;
20 18
21 void PlatformInit(); 19 void PlatformInit();
22 20
23 scoped_ptr<blink::WebCryptoDigestor> CreatePlatformDigestor( 21 scoped_ptr<blink::WebCryptoDigestor> CreatePlatformDigestor(
24 blink::WebCryptoAlgorithmId algorithm); 22 blink::WebCryptoAlgorithmId algorithm);
25 23
26 AlgorithmImplementation* CreatePlatformShaImplementation(); 24 AlgorithmImplementation* CreatePlatformShaImplementation();
27 AlgorithmImplementation* CreatePlatformAesCbcImplementation(); 25 AlgorithmImplementation* CreatePlatformAesCbcImplementation();
28 AlgorithmImplementation* CreatePlatformAesCtrImplementation(); 26 AlgorithmImplementation* CreatePlatformAesCtrImplementation();
29 AlgorithmImplementation* CreatePlatformAesGcmImplementation(); 27 AlgorithmImplementation* CreatePlatformAesGcmImplementation();
30 AlgorithmImplementation* CreatePlatformAesKwImplementation(); 28 AlgorithmImplementation* CreatePlatformAesKwImplementation();
31 AlgorithmImplementation* CreatePlatformHmacImplementation(); 29 AlgorithmImplementation* CreatePlatformHmacImplementation();
32 AlgorithmImplementation* CreatePlatformRsaOaepImplementation(); 30 AlgorithmImplementation* CreatePlatformRsaOaepImplementation();
33 AlgorithmImplementation* CreatePlatformRsaSsaImplementation(); 31 AlgorithmImplementation* CreatePlatformRsaSsaImplementation();
34 AlgorithmImplementation* CreatePlatformRsaPssImplementation(); 32 AlgorithmImplementation* CreatePlatformRsaPssImplementation();
35 AlgorithmImplementation* CreatePlatformEcdsaImplementation(); 33 AlgorithmImplementation* CreatePlatformEcdsaImplementation();
36 AlgorithmImplementation* CreatePlatformEcdhImplementation(); 34 AlgorithmImplementation* CreatePlatformEcdhImplementation();
37 AlgorithmImplementation* CreatePlatformHkdfImplementation(); 35 AlgorithmImplementation* CreatePlatformHkdfImplementation();
38 AlgorithmImplementation* CreatePlatformPbkdf2Implementation(); 36 AlgorithmImplementation* CreatePlatformPbkdf2Implementation();
39 37
40 } // namespace webcrypto 38 } // namespace webcrypto
41 39
42 } // namespace content 40 #endif // COMPONENTS_WEBCRYPTO_PLATFORM_CRYPTO_H_
43
44 #endif // CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_
OLDNEW
« no previous file with comments | « components/webcrypto/openssl/util_openssl.cc ('k') | components/webcrypto/status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698