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

Side by Side Diff: crypto/signature_verifier.h

Issue 2332473002: Use new BoringSSL scopers in //crypto (Closed)
Patch Set: rebase 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 | « crypto/signature_creator.cc ('k') | crypto/signature_verifier.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CRYPTO_SIGNATURE_VERIFIER_H_ 5 #ifndef CRYPTO_SIGNATURE_VERIFIER_H_
6 #define CRYPTO_SIGNATURE_VERIFIER_H_ 6 #define CRYPTO_SIGNATURE_VERIFIER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
10 #include <vector> 11 #include <vector>
11 12
12 #include "build/build_config.h" 13 #include "build/build_config.h"
13 #include "crypto/crypto_export.h" 14 #include "crypto/crypto_export.h"
14 15
15 typedef struct env_md_st EVP_MD; 16 typedef struct env_md_st EVP_MD;
16 typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; 17 typedef struct evp_pkey_ctx_st EVP_PKEY_CTX;
17 18
18 namespace crypto { 19 namespace crypto {
19 20
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 int signature_len, 97 int signature_len,
97 const uint8_t* public_key_info, 98 const uint8_t* public_key_info,
98 int public_key_info_len, 99 int public_key_info_len,
99 EVP_PKEY_CTX** pkey_ctx); 100 EVP_PKEY_CTX** pkey_ctx);
100 101
101 void Reset(); 102 void Reset();
102 103
103 std::vector<uint8_t> signature_; 104 std::vector<uint8_t> signature_;
104 105
105 struct VerifyContext; 106 struct VerifyContext;
106 VerifyContext* verify_context_; 107 std::unique_ptr<VerifyContext> verify_context_;
107 }; 108 };
108 109
109 } // namespace crypto 110 } // namespace crypto
110 111
111 #endif // CRYPTO_SIGNATURE_VERIFIER_H_ 112 #endif // CRYPTO_SIGNATURE_VERIFIER_H_
OLDNEW
« no previous file with comments | « crypto/signature_creator.cc ('k') | crypto/signature_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698