OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 <cryptohi.h> | 5 #include <cryptohi.h> |
6 | 6 |
7 #include "content/child/webcrypto/crypto_data.h" | 7 #include "components/webcrypto/crypto_data.h" |
8 #include "content/child/webcrypto/nss/key_nss.h" | 8 #include "components/webcrypto/nss/key_nss.h" |
9 #include "content/child/webcrypto/nss/rsa_hashed_algorithm_nss.h" | 9 #include "components/webcrypto/nss/rsa_hashed_algorithm_nss.h" |
10 #include "content/child/webcrypto/nss/util_nss.h" | 10 #include "components/webcrypto/nss/util_nss.h" |
11 #include "content/child/webcrypto/status.h" | 11 #include "components/webcrypto/status.h" |
12 #include "crypto/scoped_nss_types.h" | 12 #include "crypto/scoped_nss_types.h" |
13 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" | 13 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
14 | 14 |
15 namespace content { | 15 namespace components { |
16 | 16 |
17 namespace webcrypto { | 17 namespace webcrypto { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 class RsaSsaImplementation : public RsaHashedAlgorithm { | 21 class RsaSsaImplementation : public RsaHashedAlgorithm { |
22 public: | 22 public: |
23 RsaSsaImplementation() | 23 RsaSsaImplementation() |
24 : RsaHashedAlgorithm(CKF_SIGN | CKF_VERIFY, | 24 : RsaHashedAlgorithm(CKF_SIGN | CKF_VERIFY, |
25 blink::WebCryptoKeyUsageVerify, | 25 blink::WebCryptoKeyUsageVerify, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 }; | 127 }; |
128 | 128 |
129 } // namespace | 129 } // namespace |
130 | 130 |
131 AlgorithmImplementation* CreatePlatformRsaSsaImplementation() { | 131 AlgorithmImplementation* CreatePlatformRsaSsaImplementation() { |
132 return new RsaSsaImplementation; | 132 return new RsaSsaImplementation; |
133 } | 133 } |
134 | 134 |
135 } // namespace webcrypto | 135 } // namespace webcrypto |
136 | 136 |
137 } // namespace content | 137 } // namespace components |
OLD | NEW |