| 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 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_RSA_H_ | 5 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_RSA_H_ |
| 6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_RSA_H_ | 6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_RSA_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "components/webcrypto/algorithm_implementation.h" | 10 #include "components/webcrypto/algorithm_implementation.h" |
| 9 | 11 |
| 10 namespace webcrypto { | 12 namespace webcrypto { |
| 11 | 13 |
| 12 // Base class for an RSA algorithm whose keys additionaly have a hash parameter | 14 // Base class for an RSA algorithm whose keys additionaly have a hash parameter |
| 13 // bound to them. Provides functionality for generating, importing, and | 15 // bound to them. Provides functionality for generating, importing, and |
| 14 // exporting keys. | 16 // exporting keys. |
| 15 class RsaHashedAlgorithm : public AlgorithmImplementation { | 17 class RsaHashedAlgorithm : public AlgorithmImplementation { |
| 16 public: | 18 public: |
| 17 // |all_public_key_usages| and |all_private_key_usages| are the set of | 19 // |all_public_key_usages| and |all_private_key_usages| are the set of |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 blink::WebCryptoKey* key) const override; | 79 blink::WebCryptoKey* key) const override; |
| 78 | 80 |
| 79 private: | 81 private: |
| 80 const blink::WebCryptoKeyUsageMask all_public_key_usages_; | 82 const blink::WebCryptoKeyUsageMask all_public_key_usages_; |
| 81 const blink::WebCryptoKeyUsageMask all_private_key_usages_; | 83 const blink::WebCryptoKeyUsageMask all_private_key_usages_; |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace webcrypto | 86 } // namespace webcrypto |
| 85 | 87 |
| 86 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_RSA_H_ | 88 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_RSA_H_ |
| OLD | NEW |