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

Side by Side Diff: components/webcrypto/algorithms/sha.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <openssl/digest.h>
6 #include <stdint.h> 5 #include <stdint.h>
7 6
8 #include <vector> 7 #include <vector>
9 8
10 #include "base/logging.h" 9 #include "base/logging.h"
11 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
12 #include "components/webcrypto/algorithm_implementation.h" 11 #include "components/webcrypto/algorithm_implementation.h"
13 #include "components/webcrypto/algorithms/util.h" 12 #include "components/webcrypto/algorithms/util.h"
14 #include "components/webcrypto/crypto_data.h" 13 #include "components/webcrypto/crypto_data.h"
15 #include "components/webcrypto/status.h" 14 #include "components/webcrypto/status.h"
16 #include "crypto/openssl_util.h" 15 #include "crypto/openssl_util.h"
16 #include "third_party/boringssl/src/include/openssl/digest.h"
17 17
18 namespace webcrypto { 18 namespace webcrypto {
19 19
20 namespace { 20 namespace {
21 21
22 // Implementation of blink::WebCryptoDigester, an internal Blink detail not 22 // Implementation of blink::WebCryptoDigester, an internal Blink detail not
23 // part of WebCrypto, that allows chunks of data to be streamed in before 23 // part of WebCrypto, that allows chunks of data to be streamed in before
24 // computing a SHA-* digest (as opposed to ShaImplementation, which computes 24 // computing a SHA-* digest (as opposed to ShaImplementation, which computes
25 // digests over complete messages) 25 // digests over complete messages)
26 class DigestorImpl : public blink::WebCryptoDigestor { 26 class DigestorImpl : public blink::WebCryptoDigestor {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 std::unique_ptr<AlgorithmImplementation> CreateShaImplementation() { 121 std::unique_ptr<AlgorithmImplementation> CreateShaImplementation() {
122 return base::MakeUnique<ShaImplementation>(); 122 return base::MakeUnique<ShaImplementation>();
123 } 123 }
124 124
125 std::unique_ptr<blink::WebCryptoDigestor> CreateDigestorImplementation( 125 std::unique_ptr<blink::WebCryptoDigestor> CreateDigestorImplementation(
126 blink::WebCryptoAlgorithmId algorithm) { 126 blink::WebCryptoAlgorithmId algorithm) {
127 return std::unique_ptr<blink::WebCryptoDigestor>(new DigestorImpl(algorithm)); 127 return std::unique_ptr<blink::WebCryptoDigestor>(new DigestorImpl(algorithm));
128 } 128 }
129 129
130 } // namespace webcrypto 130 } // namespace webcrypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698