| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |