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