Chromium Code Reviews| Index: content/renderer/webcrypto_impl.cc |
| diff --git a/content/renderer/webcrypto_impl.cc b/content/renderer/webcrypto_impl.cc |
| index b62eb0931657cdd5905dad6c76fd80519a633afb..b9c68a11672d09386627b05556d3e5aad616dc87 100644 |
| --- a/content/renderer/webcrypto_impl.cc |
| +++ b/content/renderer/webcrypto_impl.cc |
| @@ -29,6 +29,20 @@ void WebCryptoImpl::encrypt( |
| } |
| } |
| +void WebCryptoImpl::decrypt( |
| + const WebKit::WebCryptoAlgorithm& algorithm, |
| + const WebKit::WebCryptoKey& key, |
| + const unsigned char* data, |
| + unsigned data_size, |
| + WebKit::WebCryptoResult result) { |
| + WebKit::WebArrayBuffer buffer; |
| + if (!DecryptInternal(algorithm, key, data, data_size, &buffer)) { |
|
jamesr
2013/09/25 21:29:05
no {}s for one-line bodies, right?
eroman
2013/09/25 22:11:59
I am matching the style elsewhere in this file.
A
|
| + result.completeWithError(); |
| + } else { |
| + result.completeWithBuffer(buffer); |
| + } |
| +} |
| + |
| void WebCryptoImpl::digest( |
| const WebKit::WebCryptoAlgorithm& algorithm, |
| const unsigned char* data, |