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

Side by Side Diff: content/renderer/webcrypto_impl_openssl.cc

Issue 23569007: WebCrypto: Implement importKey() and sign() for HMAC in NSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes to review from eroman Created 7 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
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_impl.h" 5 #include "content/renderer/webcrypto_impl.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 bool WebCryptoImpl::digestInternal( 9 bool WebCryptoImpl::DigestInternal(
10 const WebKit::WebCryptoAlgorithm& algorithm, 10 const WebKit::WebCryptoAlgorithm& algorithm,
11 const unsigned char* data, 11 const unsigned char* data,
12 size_t data_size, 12 size_t data_size,
13 WebKit::WebArrayBuffer* buffer) { 13 WebKit::WebArrayBuffer* buffer) {
14 // TODO(bryaneyler): Placeholder for OpenSSL implementation. 14 // TODO(bryaneyler): Placeholder for OpenSSL implementation.
15 // Issue http://crbug.com/267888. 15 // Issue http://crbug.com/267888.
16 return false; 16 return false;
17 } 17 }
18 18
19 bool WebCryptoImpl::ImportKeyInternal(
20 WebKit::WebCryptoKeyFormat format,
21 const unsigned char* key_data,
22 size_t key_data_size,
23 const WebKit::WebCryptoAlgorithm& algorithm,
24 WebKit::WebCryptoKeyUsageMask usage_mask,
25 scoped_ptr<WebKit::WebCryptoKeyHandle>* handle,
26 WebKit::WebCryptoKeyType* type) {
27 // TODO(bryaneyler): Placeholder for OpenSSL implementation.
28 // Issue http://crbug.com/267888.
29 return false;
30 }
31
32 bool WebCryptoImpl::SignInternal(
33 const WebKit::WebCryptoAlgorithm& algorithm,
34 const WebKit::WebCryptoKeyHandle* key,
35 const unsigned char* data,
36 size_t data_size,
eroman 2013/09/09 23:00:48 ditto here if you make the change to "unsigned int
Bryan Eyler 2013/09/10 01:15:54 Done.
37 WebKit::WebArrayBuffer* buffer) {
38 // TODO(bryaneyler): Placeholder for OpenSSL implementation.
39 // Issue http://crbug.com/267888.
40 return false;
41 }
42
19 } // namespace content 43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698