Removed data compression UMA from ProxyService
[chromium-blink-merge.git] / content / child / webcrypto / platform_crypto.h
blob3c03b53bd2023c6a0b5b48136e41d07fa25c3c51
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 CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_
6 #define CONTENT_CHILD_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 content {
17 namespace webcrypto {
19 class AlgorithmImplementation;
21 void PlatformInit();
23 scoped_ptr<blink::WebCryptoDigestor> CreatePlatformDigestor(
24 blink::WebCryptoAlgorithmId algorithm);
26 AlgorithmImplementation* CreatePlatformShaImplementation();
27 AlgorithmImplementation* CreatePlatformAesCbcImplementation();
28 AlgorithmImplementation* CreatePlatformAesGcmImplementation();
29 AlgorithmImplementation* CreatePlatformAesKwImplementation();
30 AlgorithmImplementation* CreatePlatformHmacImplementation();
31 AlgorithmImplementation* CreatePlatformRsaOaepImplementation();
32 AlgorithmImplementation* CreatePlatformRsaSsaImplementation();
34 bool PlatformSerializeKeyForClone(const blink::WebCryptoKey& key,
35 blink::WebVector<uint8_t>* key_data);
37 } // namespace webcrypto
39 } // namespace content
41 #endif // CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_