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

Side by Side Diff: content/renderer/webcrypto/webcrypto_util.cc

Issue 119413002: [webcrypto] Add key generation for AES-GCM and AES-KW for NSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 | « content/renderer/webcrypto/webcrypto_util.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/webcrypto_util.h" 5 #include "content/renderer/webcrypto/webcrypto_util.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" 9 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h"
10 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" 10 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return CreateAesKeyGenAlgorithm(blink::WebCryptoAlgorithmIdAesCbc, 165 return CreateAesKeyGenAlgorithm(blink::WebCryptoAlgorithmIdAesCbc,
166 key_length_bits); 166 key_length_bits);
167 } 167 }
168 168
169 blink::WebCryptoAlgorithm CreateAesGcmKeyGenAlgorithm( 169 blink::WebCryptoAlgorithm CreateAesGcmKeyGenAlgorithm(
170 unsigned short key_length_bits) { 170 unsigned short key_length_bits) {
171 return CreateAesKeyGenAlgorithm(blink::WebCryptoAlgorithmIdAesGcm, 171 return CreateAesKeyGenAlgorithm(blink::WebCryptoAlgorithmIdAesGcm,
172 key_length_bits); 172 key_length_bits);
173 } 173 }
174 174
175 blink::WebCryptoAlgorithm CreateAesKwKeyGenAlgorithm(
eroman 2013/12/20 01:28:16 I don't think this should go in the webcrypto_util
padolph 2013/12/20 02:03:00 Done.
176 unsigned short key_length_bits) {
177 return CreateAesKeyGenAlgorithm(blink::WebCryptoAlgorithmIdAesKw,
178 key_length_bits);
179 }
180
175 } // namespace webcrypto 181 } // namespace webcrypto
176 182
177 } // namespace content 183 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/webcrypto/webcrypto_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698