OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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/child/webcrypto/crypto_data.h" |
| 6 #include "content/child/webcrypto/openssl/key_openssl.h" |
| 7 #include "content/child/webcrypto/openssl/rsa_key_openssl.h" |
| 8 #include "content/child/webcrypto/status.h" |
| 9 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 namespace webcrypto { |
| 14 |
| 15 namespace { |
| 16 |
| 17 class RsaSsaImplementation : public RsaHashedAlgorithm { |
| 18 public: |
| 19 RsaSsaImplementation() |
| 20 : RsaHashedAlgorithm(blink::WebCryptoKeyUsageVerify, |
| 21 blink::WebCryptoKeyUsageSign) {} |
| 22 |
| 23 // TODO(eroman): Implement Sign() and Verify(). |
| 24 }; |
| 25 |
| 26 } // namespace |
| 27 |
| 28 AlgorithmImplementation* CreatePlatformRsaSsaImplementation() { |
| 29 return new RsaSsaImplementation; |
| 30 } |
| 31 |
| 32 } // namespace webcrypto |
| 33 |
| 34 } // namespace content |
OLD | NEW |