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/child/webcrypto/nss/util_nss.h" | 5 #include "content/child/webcrypto/nss/util_nss.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "content/child/webcrypto/crypto_data.h" | 8 #include "content/child/webcrypto/crypto_data.h" |
| 9 #include "content/child/webcrypto/platform_crypto.h" |
9 #include "crypto/nss_util.h" | 10 #include "crypto/nss_util.h" |
10 #include "crypto/scoped_nss_types.h" | 11 #include "crypto/scoped_nss_types.h" |
11 | 12 |
12 #if defined(USE_NSS) | 13 #if defined(USE_NSS) |
13 #include <dlfcn.h> | 14 #include <dlfcn.h> |
14 #include <secoid.h> | 15 #include <secoid.h> |
15 #endif | 16 #endif |
16 | 17 |
17 namespace content { | 18 namespace content { |
18 | 19 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 internal_slot_does_oaep_ = | 73 internal_slot_does_oaep_ = |
73 !!PK11_DoesMechanism(slot.get(), CKM_RSA_PKCS_OAEP); | 74 !!PK11_DoesMechanism(slot.get(), CKM_RSA_PKCS_OAEP); |
74 } | 75 } |
75 #endif | 76 #endif |
76 } | 77 } |
77 | 78 |
78 void PlatformInit() { | 79 void PlatformInit() { |
79 crypto::EnsureNSSInit(); | 80 crypto::EnsureNSSInit(); |
80 } | 81 } |
81 | 82 |
| 83 AlgorithmImplementation* CreatePlatformAesCtrImplementation() { |
| 84 // TODO(eroman): http://crbug.com/399084 |
| 85 return NULL; |
| 86 } |
| 87 |
82 } // namespace webcrypto | 88 } // namespace webcrypto |
83 | 89 |
84 } // namespace content | 90 } // namespace content |
OLD | NEW |