| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 BASE_CRYPTO_SIGNATURE_VERIFIER_H_ | 5 #ifndef BASE_CRYPTO_SIGNATURE_VERIFIER_H_ |
| 6 #define BASE_CRYPTO_SIGNATURE_VERIFIER_H_ | 6 #define BASE_CRYPTO_SIGNATURE_VERIFIER_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(USE_NSS) | 10 #if defined(USE_NSS) |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 private: | 79 private: |
| 80 void Reset(); | 80 void Reset(); |
| 81 | 81 |
| 82 std::vector<uint8> signature_; | 82 std::vector<uint8> signature_; |
| 83 | 83 |
| 84 #if defined(USE_NSS) | 84 #if defined(USE_NSS) |
| 85 VFYContext* vfy_context_; | 85 VFYContext* vfy_context_; |
| 86 #elif defined(OS_MACOSX) | 86 #elif defined(OS_MACOSX) |
| 87 std::vector<uint8> public_key_info_; | 87 std::vector<uint8> public_key_info_; |
| 88 | 88 |
| 89 CSSM_CSP_HANDLE csp_handle_; | |
| 90 | |
| 91 CSSM_CC_HANDLE sig_handle_; | 89 CSSM_CC_HANDLE sig_handle_; |
| 92 | 90 |
| 93 CSSM_KEY public_key_; | 91 CSSM_KEY public_key_; |
| 94 #elif defined(OS_WIN) | 92 #elif defined(OS_WIN) |
| 95 HCRYPTPROV provider_; | 93 HCRYPTPROV provider_; |
| 96 | 94 |
| 97 HCRYPTHASH hash_object_; | 95 HCRYPTHASH hash_object_; |
| 98 | 96 |
| 99 HCRYPTKEY public_key_; | 97 HCRYPTKEY public_key_; |
| 100 #endif | 98 #endif |
| 101 }; | 99 }; |
| 102 | 100 |
| 103 } // namespace base | 101 } // namespace base |
| 104 | 102 |
| 105 #endif // BASE_CRYPTO_SIGNATURE_VERIFIER_H_ | 103 #endif // BASE_CRYPTO_SIGNATURE_VERIFIER_H_ |
| OLD | NEW |