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

Side by Side Diff: components/webcrypto/nss/aes_algorithm_nss.cc

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 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
« no previous file with comments | « components/webcrypto/nss/aes_algorithm_nss.h ('k') | components/webcrypto/nss/aes_cbc_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/aes_algorithm_nss.h" 5 #include "components/webcrypto/nss/aes_algorithm_nss.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/child/webcrypto/crypto_data.h" 8 #include "components/webcrypto/crypto_data.h"
9 #include "content/child/webcrypto/jwk.h" 9 #include "components/webcrypto/jwk.h"
10 #include "content/child/webcrypto/nss/key_nss.h" 10 #include "components/webcrypto/nss/key_nss.h"
11 #include "content/child/webcrypto/nss/sym_key_nss.h" 11 #include "components/webcrypto/nss/sym_key_nss.h"
12 #include "content/child/webcrypto/status.h" 12 #include "components/webcrypto/status.h"
13 #include "content/child/webcrypto/webcrypto_util.h" 13 #include "components/webcrypto/webcrypto_util.h"
14 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" 14 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
15 15
16 namespace content {
17
18 namespace webcrypto { 16 namespace webcrypto {
19 17
20 AesAlgorithm::AesAlgorithm(CK_MECHANISM_TYPE import_mechanism, 18 AesAlgorithm::AesAlgorithm(CK_MECHANISM_TYPE import_mechanism,
21 blink::WebCryptoKeyUsageMask all_key_usages, 19 blink::WebCryptoKeyUsageMask all_key_usages,
22 const std::string& jwk_suffix) 20 const std::string& jwk_suffix)
23 : import_mechanism_(import_mechanism), 21 : import_mechanism_(import_mechanism),
24 all_key_usages_(all_key_usages), 22 all_key_usages_(all_key_usages),
25 jwk_suffix_(jwk_suffix) { 23 jwk_suffix_(jwk_suffix) {
26 } 24 }
27 25
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 132 }
135 133
136 Status AesAlgorithm::GetKeyLength( 134 Status AesAlgorithm::GetKeyLength(
137 const blink::WebCryptoAlgorithm& key_length_algorithm, 135 const blink::WebCryptoAlgorithm& key_length_algorithm,
138 bool* has_length_bits, 136 bool* has_length_bits,
139 unsigned int* length_bits) const { 137 unsigned int* length_bits) const {
140 return GetAesKeyLength(key_length_algorithm, has_length_bits, length_bits); 138 return GetAesKeyLength(key_length_algorithm, has_length_bits, length_bits);
141 } 139 }
142 140
143 } // namespace webcrypto 141 } // namespace webcrypto
144
145 } // namespace content
OLDNEW
« no previous file with comments | « components/webcrypto/nss/aes_algorithm_nss.h ('k') | components/webcrypto/nss/aes_cbc_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698