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

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

Issue 24656002: [webcrypto] Add decrypt() for AES-CBC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reword "non-block-aligned" to "not a multiple of block size" Created 7 years, 2 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 | Annotate | Revision Log
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_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
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
OLDNEW
« no previous file with comments | « content/renderer/webcrypto/webcrypto_impl_nss.cc ('k') | content/renderer/webcrypto/webcrypto_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698