Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: content/child/webcrypto/nss/util_nss.cc

Issue 491763002: [webcrypto] Implement AES-CTR using BoringSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master (moves unittest to its own file) Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/child/webcrypto/algorithm_registry.cc ('k') | content/child/webcrypto/openssl/aes_cbc_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698