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

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: Re-submit with fixed external dependencies. 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 void WebCryptoImpl::Init() { 9 void WebCryptoImpl::Init() {
10 } 10 }
11 11
12 bool WebCryptoImpl::DigestInternal( 12 bool WebCryptoImpl::DigestInternal(
13 const WebKit::WebCryptoAlgorithm& algorithm, 13 const WebKit::WebCryptoAlgorithm& algorithm,
14 const unsigned char* data, 14 const unsigned char* data,
15 unsigned data_size, 15 unsigned data_size,
16 WebKit::WebArrayBuffer* buffer) { 16 WebKit::WebArrayBuffer* buffer) {
17 // TODO(bryaneyler): Placeholder for OpenSSL implementation. 17 // TODO(bryaneyler): Placeholder for OpenSSL implementation.
18 // Issue http://crbug.com/267888. 18 // Issue http://crbug.com/267888.
19 return false; 19 return false;
20 } 20 }
21 21
22 bool WebCryptoImpl::ImportKeyInternal(
23 WebKit::WebCryptoKeyFormat format,
24 const unsigned char* key_data,
25 unsigned key_data_size,
26 const WebKit::WebCryptoAlgorithm& algorithm,
27 WebKit::WebCryptoKeyUsageMask usage_mask,
28 scoped_ptr<WebKit::WebCryptoKeyHandle>* handle,
29 WebKit::WebCryptoKeyType* type) {
30 // TODO(bryaneyler): Placeholder for OpenSSL implementation.
31 // Issue http://crbug.com/267888.
32 return false;
33 }
34
35 bool WebCryptoImpl::SignInternal(
36 const WebKit::WebCryptoAlgorithm& algorithm,
37 const WebKit::WebCryptoKey& key,
38 const unsigned char* data,
39 unsigned data_size,
40 WebKit::WebArrayBuffer* buffer) {
41 // TODO(bryaneyler): Placeholder for OpenSSL implementation.
42 // Issue http://crbug.com/267888.
43 return false;
44 }
45
22 } // namespace content 46 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698