OLD | NEW |
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 unsigned data_size, | 12 unsigned 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 unsigned 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 unsigned data_size, |
| 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 |
OLD | NEW |