OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 NET_CERT_INTERNAL_SIGNATURE_ALGORITHM_H_ | 5 #ifndef NET_CERT_INTERNAL_SIGNATURE_ALGORITHM_H_ |
6 #define NET_CERT_INTERNAL_SIGNATURE_ALGORITHM_H_ | 6 #define NET_CERT_INTERNAL_SIGNATURE_ALGORITHM_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 class CertErrors; | 18 class CertErrors; |
19 | 19 |
20 namespace der { | 20 namespace der { |
21 class Input; | 21 class Input; |
22 } // namespace der | 22 } // namespace der |
23 | 23 |
24 // The digest algorithm used within a signature. | 24 // The digest algorithm used within a signature. |
25 enum class DigestAlgorithm { | 25 enum class DigestAlgorithm { |
| 26 Md2, |
| 27 Md4, |
| 28 Md5, |
26 Sha1, | 29 Sha1, |
27 Sha256, | 30 Sha256, |
28 Sha384, | 31 Sha384, |
29 Sha512, | 32 Sha512, |
30 }; | 33 }; |
31 | 34 |
32 // The signature scheme used within a signature. Parameters are specified | 35 // The signature scheme used within a signature. Parameters are specified |
33 // separately. | 36 // separately. |
34 enum class SignatureAlgorithmId { | 37 enum class SignatureAlgorithmId { |
35 RsaPkcs1, // RSA PKCS#1 v1.5 | 38 RsaPkcs1, // RSA PKCS#1 v1.5 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 const SignatureAlgorithmId algorithm_; | 126 const SignatureAlgorithmId algorithm_; |
124 const DigestAlgorithm digest_; | 127 const DigestAlgorithm digest_; |
125 const std::unique_ptr<SignatureAlgorithmParameters> params_; | 128 const std::unique_ptr<SignatureAlgorithmParameters> params_; |
126 | 129 |
127 DISALLOW_COPY_AND_ASSIGN(SignatureAlgorithm); | 130 DISALLOW_COPY_AND_ASSIGN(SignatureAlgorithm); |
128 }; | 131 }; |
129 | 132 |
130 } // namespace net | 133 } // namespace net |
131 | 134 |
132 #endif // NET_CERT_INTERNAL_SIGNATURE_ALGORITHM_H_ | 135 #endif // NET_CERT_INTERNAL_SIGNATURE_ALGORITHM_H_ |
OLD | NEW |