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

Side by Side Diff: base/crypto/signature_verifier.h

Issue 5105003: Implements Signature Creator & Verifier for openssl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wtc comments - change error stack tracer to use FROM_HERE Created 10 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 | Annotate | Revision Log
« no previous file with comments | « base/crypto/signature_creator_openssl.cc ('k') | base/crypto/signature_verifier_openssl.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) 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
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_
OLDNEW
« no previous file with comments | « base/crypto/signature_creator_openssl.cc ('k') | base/crypto/signature_verifier_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698