OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SIGNED_CERTIFICATE_TIMESTAMP_H_ | 5 #ifndef NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ |
6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ | 6 #define NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 }; | 59 }; |
60 | 60 |
61 enum SignatureAlgorithm { | 61 enum SignatureAlgorithm { |
62 SIG_ALGO_ANONYMOUS = 0, | 62 SIG_ALGO_ANONYMOUS = 0, |
63 SIG_ALGO_RSA = 1, | 63 SIG_ALGO_RSA = 1, |
64 SIG_ALGO_DSA = 2, | 64 SIG_ALGO_DSA = 2, |
65 SIG_ALGO_ECDSA = 3 | 65 SIG_ALGO_ECDSA = 3 |
66 }; | 66 }; |
67 | 67 |
68 DigitallySigned(); | 68 DigitallySigned(); |
| 69 |
| 70 DigitallySigned(HashAlgorithm hash_algo, |
| 71 SignatureAlgorithm sig_algo, |
| 72 const std::string& sig_data); |
| 73 |
69 ~DigitallySigned(); | 74 ~DigitallySigned(); |
70 | 75 |
71 // Returns true if |other_hash_algorithm| and |other_signature_algorithm| | 76 // Returns true if |other_hash_algorithm| and |other_signature_algorithm| |
72 // match this DigitallySigned hash and signature algorithms. | 77 // match this DigitallySigned hash and signature algorithms. |
73 bool SignatureParametersMatch( | 78 bool SignatureParametersMatch( |
74 HashAlgorithm other_hash_algorithm, | 79 HashAlgorithm other_hash_algorithm, |
75 SignatureAlgorithm other_signature_algorithm) const; | 80 SignatureAlgorithm other_signature_algorithm) const; |
76 | 81 |
77 HashAlgorithm hash_algorithm; | 82 HashAlgorithm hash_algorithm; |
78 SignatureAlgorithm signature_algorithm; | 83 SignatureAlgorithm signature_algorithm; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 ~SignedCertificateTimestamp(); | 134 ~SignedCertificateTimestamp(); |
130 | 135 |
131 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp); | 136 DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestamp); |
132 }; | 137 }; |
133 | 138 |
134 } // namespace ct | 139 } // namespace ct |
135 | 140 |
136 } // namespace net | 141 } // namespace net |
137 | 142 |
138 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ | 143 #endif // NET_CERT_SIGNED_CERTIFICATE_TIMESTAMP_H_ |
OLD | NEW |