| 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 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" | 
| 10 | 10 | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 76   //               const uint8* signature, | 76   //               const uint8* signature, | 
| 77   //               int signature_len, | 77   //               int signature_len, | 
| 78   //               const uint8* public_key_info, | 78   //               const uint8* public_key_info, | 
| 79   //               int public_key_info_len); | 79   //               int public_key_info_len); | 
| 80 | 80 | 
| 81  private: | 81  private: | 
| 82   void Reset(); | 82   void Reset(); | 
| 83 | 83 | 
| 84   std::vector<uint8> signature_; | 84   std::vector<uint8> signature_; | 
| 85 | 85 | 
| 86 #if defined(USE_NSS) | 86 #if defined(USE_OPENSSL) | 
|  | 87   struct VerifyContext; | 
|  | 88   VerifyContext* verify_context_; | 
|  | 89 #elif defined(USE_NSS) | 
| 87   VFYContext* vfy_context_; | 90   VFYContext* vfy_context_; | 
| 88 #elif defined(OS_MACOSX) | 91 #elif defined(OS_MACOSX) | 
| 89   std::vector<uint8> public_key_info_; | 92   std::vector<uint8> public_key_info_; | 
| 90 | 93 | 
| 91   CSSM_CC_HANDLE sig_handle_; | 94   CSSM_CC_HANDLE sig_handle_; | 
| 92 | 95 | 
| 93   CSSM_KEY public_key_; | 96   CSSM_KEY public_key_; | 
| 94 #elif defined(OS_WIN) | 97 #elif defined(OS_WIN) | 
| 95   ScopedHCRYPTPROV provider_; | 98   ScopedHCRYPTPROV provider_; | 
| 96 | 99 | 
| 97   ScopedHCRYPTHASH hash_object_; | 100   ScopedHCRYPTHASH hash_object_; | 
| 98 | 101 | 
| 99   ScopedHCRYPTKEY public_key_; | 102   ScopedHCRYPTKEY public_key_; | 
| 100 #endif | 103 #endif | 
| 101 }; | 104 }; | 
| 102 | 105 | 
| 103 }  // namespace base | 106 }  // namespace base | 
| 104 | 107 | 
| 105 #endif  // BASE_CRYPTO_SIGNATURE_VERIFIER_H_ | 108 #endif  // BASE_CRYPTO_SIGNATURE_VERIFIER_H_ | 
| OLD | NEW | 
|---|