OLD | NEW |
(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 |
OLD | NEW |