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

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

Issue 19355002: Add chromium side implementation of WebKit::WebCrypto. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master Created 7 years, 5 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
« no previous file with comments | « content/renderer/webcrypto_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/renderer/webcrypto_impl.h"
6
7 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h"
8
9 namespace content {
10
11 WebKit::WebCryptoOperation* WebCryptoImpl::digest(
12 const WebKit::WebCryptoAlgorithm& algorithm) {
13 switch (algorithm.id()) {
14 case WebKit::WebCryptoAlgorithmIdSha1:
15 case WebKit::WebCryptoAlgorithmIdSha224:
16 case WebKit::WebCryptoAlgorithmIdSha256:
17 case WebKit::WebCryptoAlgorithmIdSha384:
18 case WebKit::WebCryptoAlgorithmIdSha512:
19 // TODO(eroman): Implement.
20 return NULL;
21 default:
22 // Not a digest algorithm.
23 return NULL;
24 }
25 }
26
27 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/webcrypto_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698