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

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

Issue 24656002: [webcrypto] Add decrypt() for AES-CBC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_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::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 15 matching lines...) Expand all
46 const WebKit::WebCryptoKey& key, 55 const WebKit::WebCryptoKey& key,
47 const unsigned char* data, 56 const unsigned char* data,
48 unsigned data_size, 57 unsigned data_size,
49 WebKit::WebArrayBuffer* buffer) { 58 WebKit::WebArrayBuffer* buffer) {
50 // TODO(bryaneyler): Placeholder for OpenSSL implementation. 59 // TODO(bryaneyler): Placeholder for OpenSSL implementation.
51 // Issue http://crbug.com/267888. 60 // Issue http://crbug.com/267888.
52 return false; 61 return false;
53 } 62 }
54 63
55 } // namespace content 64 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698