| 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 #include "net/cert/ct_log_verifier.h" | 5 #include "net/cert/ct_log_verifier.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <openssl/bytestring.h> | 8 #include <openssl/bytestring.h> |
| 9 #include <openssl/evp.h> | 9 #include <openssl/evp.h> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "crypto/openssl_util.h" | 12 #include "crypto/openssl_util.h" |
| 13 #include "crypto/scoped_openssl_types.h" | |
| 14 #include "crypto/sha2.h" | 13 #include "crypto/sha2.h" |
| 15 #include "net/cert/ct_log_verifier_util.h" | 14 #include "net/cert/ct_log_verifier_util.h" |
| 16 #include "net/cert/ct_serialization.h" | 15 #include "net/cert/ct_serialization.h" |
| 17 #include "net/cert/merkle_consistency_proof.h" | 16 #include "net/cert/merkle_consistency_proof.h" |
| 18 #include "net/cert/signed_tree_head.h" | 17 #include "net/cert/signed_tree_head.h" |
| 19 | 18 |
| 20 namespace net { | 19 namespace net { |
| 21 | 20 |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 data_to_sign.size()) && | 305 data_to_sign.size()) && |
| 307 1 == EVP_DigestVerifyFinal( | 306 1 == EVP_DigestVerifyFinal( |
| 308 &ctx, reinterpret_cast<const uint8_t*>(signature.data()), | 307 &ctx, reinterpret_cast<const uint8_t*>(signature.data()), |
| 309 signature.size())); | 308 signature.size())); |
| 310 | 309 |
| 311 EVP_MD_CTX_cleanup(&ctx); | 310 EVP_MD_CTX_cleanup(&ctx); |
| 312 return ok; | 311 return ok; |
| 313 } | 312 } |
| 314 | 313 |
| 315 } // namespace net | 314 } // namespace net |
| OLD | NEW |