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

Side by Side Diff: components/webcrypto/openssl/aes_algorithm_openssl.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
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/openssl/aes_algorithm_openssl.h" 5 #include "components/webcrypto/openssl/aes_algorithm_openssl.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/openssl/key_openssl.h" 10 #include "components/webcrypto/openssl/key_openssl.h"
11 #include "content/child/webcrypto/openssl/util_openssl.h" 11 #include "components/webcrypto/openssl/util_openssl.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(blink::WebCryptoKeyUsageMask all_key_usages, 18 AesAlgorithm::AesAlgorithm(blink::WebCryptoKeyUsageMask all_key_usages,
21 const std::string& jwk_suffix) 19 const std::string& jwk_suffix)
22 : all_key_usages_(all_key_usages), jwk_suffix_(jwk_suffix) { 20 : all_key_usages_(all_key_usages), jwk_suffix_(jwk_suffix) {
23 } 21 }
24 22
25 AesAlgorithm::AesAlgorithm(const std::string& jwk_suffix) 23 AesAlgorithm::AesAlgorithm(const std::string& jwk_suffix)
26 : all_key_usages_(blink::WebCryptoKeyUsageEncrypt | 24 : all_key_usages_(blink::WebCryptoKeyUsageEncrypt |
27 blink::WebCryptoKeyUsageDecrypt | 25 blink::WebCryptoKeyUsageDecrypt |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 129 }
132 130
133 Status AesAlgorithm::GetKeyLength( 131 Status AesAlgorithm::GetKeyLength(
134 const blink::WebCryptoAlgorithm& key_length_algorithm, 132 const blink::WebCryptoAlgorithm& key_length_algorithm,
135 bool* has_length_bits, 133 bool* has_length_bits,
136 unsigned int* length_bits) const { 134 unsigned int* length_bits) const {
137 return GetAesKeyLength(key_length_algorithm, has_length_bits, length_bits); 135 return GetAesKeyLength(key_length_algorithm, has_length_bits, length_bits);
138 } 136 }
139 137
140 } // namespace webcrypto 138 } // namespace webcrypto
141
142 } // namespace content
OLDNEW
« no previous file with comments | « components/webcrypto/openssl/aes_algorithm_openssl.h ('k') | components/webcrypto/openssl/aes_cbc_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698