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

Side by Side Diff: crypto/signature_verifier.cc

Issue 2449873005: include boringssl headers from third_party explicitly (Closed)
Patch Set: review comments Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "crypto/signature_verifier.h" 5 #include "crypto/signature_verifier.h"
6 6
7 #include <openssl/bytestring.h>
8 #include <openssl/digest.h>
9 #include <openssl/evp.h>
10 #include <openssl/rsa.h>
11 #include <stdint.h> 7 #include <stdint.h>
12 8
13 #include <memory> 9 #include <memory>
14 #include <vector> 10 #include <vector>
15 11
16 #include "base/logging.h" 12 #include "base/logging.h"
17 #include "crypto/openssl_util.h" 13 #include "crypto/openssl_util.h"
14 #include "third_party/boringssl/src/include/openssl/bytestring.h"
15 #include "third_party/boringssl/src/include/openssl/digest.h"
16 #include "third_party/boringssl/src/include/openssl/evp.h"
17 #include "third_party/boringssl/src/include/openssl/rsa.h"
18 18
19 namespace crypto { 19 namespace crypto {
20 20
21 namespace { 21 namespace {
22 22
23 const EVP_MD* ToOpenSSLDigest(SignatureVerifier::HashAlgorithm hash_alg) { 23 const EVP_MD* ToOpenSSLDigest(SignatureVerifier::HashAlgorithm hash_alg) {
24 switch (hash_alg) { 24 switch (hash_alg) {
25 case SignatureVerifier::SHA1: 25 case SignatureVerifier::SHA1:
26 return EVP_sha1(); 26 return EVP_sha1();
27 case SignatureVerifier::SHA256: 27 case SignatureVerifier::SHA256:
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 digest, nullptr, public_key.get()); 145 digest, nullptr, public_key.get());
146 return rv == 1; 146 return rv == 1;
147 } 147 }
148 148
149 void SignatureVerifier::Reset() { 149 void SignatureVerifier::Reset() {
150 verify_context_.reset(); 150 verify_context_.reset();
151 signature_.clear(); 151 signature_.clear();
152 } 152 }
153 153
154 } // namespace crypto 154 } // namespace crypto
OLDNEW
« chrome/common/DEPS ('K') | « crypto/signature_creator.cc ('k') | crypto/symmetric_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698