| 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/webcrypto_impl.h" | 5 #include "content/renderer/webcrypto/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::EncryptInternal( | 12 bool WebCryptoImpl::EncryptInternal( |
| 13 const WebKit::WebCryptoAlgorithm& algorithm, | 13 const WebKit::WebCryptoAlgorithm& algorithm, |
| 14 const WebKit::WebCryptoKey& key, | 14 const WebKit::WebCryptoKey& key, |
| 15 const unsigned char* data, | 15 const unsigned char* data, |
| 16 unsigned data_size, | 16 unsigned data_size, |
| 17 WebKit::WebArrayBuffer* buffer) { | 17 WebKit::WebArrayBuffer* buffer) { |
| 18 return false; | 18 return false; |
| 19 } | 19 } |
| 20 | 20 |
| 21 bool WebCryptoImpl::DecryptInternal( |
| 22 const WebKit::WebCryptoAlgorithm& algorithm, |
| 23 const WebKit::WebCryptoKey& key, |
| 24 const unsigned char* data, |
| 25 unsigned data_size, |
| 26 WebKit::WebArrayBuffer* buffer) { |
| 27 return false; |
| 28 } |
| 29 |
| 21 bool WebCryptoImpl::DigestInternal( | 30 bool WebCryptoImpl::DigestInternal( |
| 22 const WebKit::WebCryptoAlgorithm& algorithm, | 31 const WebKit::WebCryptoAlgorithm& algorithm, |
| 23 const unsigned char* data, | 32 const unsigned char* data, |
| 24 unsigned data_size, | 33 unsigned data_size, |
| 25 WebKit::WebArrayBuffer* buffer) { | 34 WebKit::WebArrayBuffer* buffer) { |
| 26 // TODO(bryaneyler): Placeholder for OpenSSL implementation. | 35 // TODO(bryaneyler): Placeholder for OpenSSL implementation. |
| 27 // Issue http://crbug.com/267888. | 36 // Issue http://crbug.com/267888. |
| 28 return false; | 37 return false; |
| 29 } | 38 } |
| 30 | 39 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 59 unsigned signature_size, | 68 unsigned signature_size, |
| 60 const unsigned char* data, | 69 const unsigned char* data, |
| 61 unsigned data_size, | 70 unsigned data_size, |
| 62 bool* signature_match) { | 71 bool* signature_match) { |
| 63 // TODO(bryaneyler): Placeholder for OpenSSL implementation. | 72 // TODO(bryaneyler): Placeholder for OpenSSL implementation. |
| 64 // Issue http://crbug.com/267888. | 73 // Issue http://crbug.com/267888. |
| 65 return false; | 74 return false; |
| 66 } | 75 } |
| 67 | 76 |
| 68 } // namespace content | 77 } // namespace content |
| OLD | NEW |