Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Side by Side Diff: net/cert/ct_log_verifier.cc

Issue 2400033005: Use BoringSSL scopers in //net. (Closed)
Patch Set: eroman comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/cert/cert_verify_proc_openssl.cc ('k') | net/cert/ct_objects_extractor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/cert/cert_verify_proc_openssl.cc ('k') | net/cert/ct_objects_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698