| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ | |
| 6 #define CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "third_party/WebKit/public/platform/WebCrypto.h" | |
| 13 | |
| 14 // The definitions for these methods lives in either nss/ or openssl/ | |
| 15 namespace content { | |
| 16 | |
| 17 namespace webcrypto { | |
| 18 | |
| 19 class AlgorithmImplementation; | |
| 20 | |
| 21 void PlatformInit(); | |
| 22 | |
| 23 scoped_ptr<blink::WebCryptoDigestor> CreatePlatformDigestor( | |
| 24 blink::WebCryptoAlgorithmId algorithm); | |
| 25 | |
| 26 AlgorithmImplementation* CreatePlatformShaImplementation(); | |
| 27 AlgorithmImplementation* CreatePlatformAesCbcImplementation(); | |
| 28 AlgorithmImplementation* CreatePlatformAesCtrImplementation(); | |
| 29 AlgorithmImplementation* CreatePlatformAesGcmImplementation(); | |
| 30 AlgorithmImplementation* CreatePlatformAesKwImplementation(); | |
| 31 AlgorithmImplementation* CreatePlatformHmacImplementation(); | |
| 32 AlgorithmImplementation* CreatePlatformRsaOaepImplementation(); | |
| 33 AlgorithmImplementation* CreatePlatformRsaSsaImplementation(); | |
| 34 AlgorithmImplementation* CreatePlatformRsaPssImplementation(); | |
| 35 AlgorithmImplementation* CreatePlatformEcdsaImplementation(); | |
| 36 AlgorithmImplementation* CreatePlatformEcdhImplementation(); | |
| 37 AlgorithmImplementation* CreatePlatformHkdfImplementation(); | |
| 38 AlgorithmImplementation* CreatePlatformPbkdf2Implementation(); | |
| 39 | |
| 40 } // namespace webcrypto | |
| 41 | |
| 42 } // namespace content | |
| 43 | |
| 44 #endif // CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ | |
| OLD | NEW |