Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ |
| 6 #define CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ | 6 #define CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
|
Ryan Sleevi
2014/07/18 23:02:55
stdint
| |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
|
Ryan Sleevi
2014/07/18 23:02:55
You don't do any CONTENT_EXPORT here. Unneeded?
| |
| 13 #include "third_party/WebKit/public/platform/WebCrypto.h" | 13 #include "third_party/WebKit/public/platform/WebCrypto.h" |
| 14 | 14 |
| 15 // The definitions for these methods lives in either nss/ or openssl/ | 15 // The definitions for these methods lives in either nss/ or openssl/ |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 namespace webcrypto { | 18 namespace webcrypto { |
| 19 | 19 |
| 20 class AlgorithmImplementation; | 20 class AlgorithmImplementation; |
| 21 | 21 |
| 22 void PlatformInit(); | 22 void PlatformInit(); |
| 23 | 23 |
| 24 scoped_ptr<blink::WebCryptoDigestor> CreatePlatformDigestor( | 24 scoped_ptr<blink::WebCryptoDigestor> CreatePlatformDigestor( |
| 25 blink::WebCryptoAlgorithmId algorithm); | 25 blink::WebCryptoAlgorithmId algorithm); |
| 26 | 26 |
| 27 AlgorithmImplementation* CreatePlatformShaImplementation(); | 27 AlgorithmImplementation* CreatePlatformShaImplementation(); |
| 28 AlgorithmImplementation* CreatePlatformAesCbcImplementation(); | 28 AlgorithmImplementation* CreatePlatformAesCbcImplementation(); |
| 29 AlgorithmImplementation* CreatePlatformAesGcmImplementation(); | 29 AlgorithmImplementation* CreatePlatformAesGcmImplementation(); |
| 30 AlgorithmImplementation* CreatePlatformAesKwImplementation(); | 30 AlgorithmImplementation* CreatePlatformAesKwImplementation(); |
| 31 AlgorithmImplementation* CreatePlatformHmacImplementation(); | 31 AlgorithmImplementation* CreatePlatformHmacImplementation(); |
| 32 AlgorithmImplementation* CreatePlatformRsaOaepImplementation(); | 32 AlgorithmImplementation* CreatePlatformRsaOaepImplementation(); |
| 33 AlgorithmImplementation* CreatePlatformRsaSsaImplementation(); | 33 AlgorithmImplementation* CreatePlatformRsaSsaImplementation(); |
| 34 | 34 |
| 35 bool PlatformSerializeKeyForClone(const blink::WebCryptoKey& key, | 35 bool PlatformSerializeKeyForClone(const blink::WebCryptoKey& key, |
| 36 blink::WebVector<uint8>* key_data); | 36 blink::WebVector<uint8_t>* key_data); |
| 37 | 37 |
| 38 } // namespace webcrypto | 38 } // namespace webcrypto |
| 39 | 39 |
| 40 } // namespace content | 40 } // namespace content |
| 41 | 41 |
| 42 #endif // CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ | 42 #endif // CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ |
| OLD | NEW |