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

Side by Side Diff: crypto/signature_verifier.h

Issue 7491061: Rename CRYPTO_API to CRYPTO_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « crypto/signature_creator.h ('k') | crypto/symmetric_key.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 #if defined(USE_NSS) 11 #if defined(USE_NSS)
12 #include <cryptoht.h> 12 #include <cryptoht.h>
13 #elif defined(OS_MACOSX) 13 #elif defined(OS_MACOSX)
14 #include <Security/cssm.h> 14 #include <Security/cssm.h>
15 #endif 15 #endif
16 16
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/basictypes.h" 19 #include "base/basictypes.h"
20 #include "crypto/crypto_api.h" 20 #include "crypto/crypto_export.h"
21 21
22 #if defined(OS_WIN) 22 #if defined(OS_WIN)
23 #include "crypto/scoped_capi_types.h" 23 #include "crypto/scoped_capi_types.h"
24 #endif 24 #endif
25 25
26 namespace crypto { 26 namespace crypto {
27 27
28 // The SignatureVerifier class verifies a signature using a bare public key 28 // The SignatureVerifier class verifies a signature using a bare public key
29 // (as opposed to a certificate). 29 // (as opposed to a certificate).
30 class CRYPTO_API SignatureVerifier { 30 class CRYPTO_EXPORT SignatureVerifier {
31 public: 31 public:
32 SignatureVerifier(); 32 SignatureVerifier();
33 ~SignatureVerifier(); 33 ~SignatureVerifier();
34 34
35 // Streaming interface: 35 // Streaming interface:
36 36
37 // Initiates a signature verification operation. This should be followed 37 // Initiates a signature verification operation. This should be followed
38 // by one or more VerifyUpdate calls and a VerifyFinal call. 38 // by one or more VerifyUpdate calls and a VerifyFinal call.
39 // 39 //
40 // The signature algorithm is specified as a DER encoded ASN.1 40 // The signature algorithm is specified as a DER encoded ASN.1
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 ScopedHCRYPTHASH hash_object_; 101 ScopedHCRYPTHASH hash_object_;
102 102
103 ScopedHCRYPTKEY public_key_; 103 ScopedHCRYPTKEY public_key_;
104 #endif 104 #endif
105 }; 105 };
106 106
107 } // namespace crypto 107 } // namespace crypto
108 108
109 #endif // CRYPTO_SIGNATURE_VERIFIER_H_ 109 #endif // CRYPTO_SIGNATURE_VERIFIER_H_
OLDNEW
« no previous file with comments | « crypto/signature_creator.h ('k') | crypto/symmetric_key.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698