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 #include "content/renderer/webcrypto/platform_crypto.h" | 5 #include "content/child/webcrypto/platform_crypto.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 #include <openssl/aes.h> | 8 #include <openssl/aes.h> |
9 #include <openssl/evp.h> | 9 #include <openssl/evp.h> |
10 #include <openssl/hmac.h> | 10 #include <openssl/hmac.h> |
11 #include <openssl/rand.h> | 11 #include <openssl/rand.h> |
12 #include <openssl/sha.h> | 12 #include <openssl/sha.h> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "content/renderer/webcrypto/crypto_data.h" | 15 #include "content/child/webcrypto/crypto_data.h" |
16 #include "content/renderer/webcrypto/webcrypto_util.h" | 16 #include "content/child/webcrypto/webcrypto_util.h" |
17 #include "crypto/openssl_util.h" | 17 #include "crypto/openssl_util.h" |
18 #include "third_party/WebKit/public/platform/WebArrayBuffer.h" | 18 #include "third_party/WebKit/public/platform/WebArrayBuffer.h" |
19 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" | 19 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
20 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" | 20 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
21 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" | 21 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 namespace webcrypto { | 25 namespace webcrypto { |
26 | 26 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { | 386 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { |
387 // TODO(eroman): http://crbug.com/267888 | 387 // TODO(eroman): http://crbug.com/267888 |
388 return Status::ErrorUnsupported(); | 388 return Status::ErrorUnsupported(); |
389 } | 389 } |
390 | 390 |
391 } // namespace platform | 391 } // namespace platform |
392 | 392 |
393 } // namespace webcrypto | 393 } // namespace webcrypto |
394 | 394 |
395 } // namespace content | 395 } // namespace content |
OLD | NEW |