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

Side by Side Diff: crypto/symmetric_key.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_verifier.h ('k') | no next file » | 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_SYMMETRIC_KEY_H_ 5 #ifndef CRYPTO_SYMMETRIC_KEY_H_
6 #define CRYPTO_SYMMETRIC_KEY_H_ 6 #define CRYPTO_SYMMETRIC_KEY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "crypto/crypto_api.h" 12 #include "crypto/crypto_export.h"
13 13
14 #if defined(USE_NSS) 14 #if defined(USE_NSS)
15 #include "crypto/scoped_nss_types.h" 15 #include "crypto/scoped_nss_types.h"
16 #elif defined(OS_MACOSX) 16 #elif defined(OS_MACOSX)
17 #include <Security/cssmtype.h> 17 #include <Security/cssmtype.h>
18 #elif defined(OS_WIN) 18 #elif defined(OS_WIN)
19 #include "crypto/scoped_capi_types.h" 19 #include "crypto/scoped_capi_types.h"
20 #endif 20 #endif
21 21
22 namespace crypto { 22 namespace crypto {
23 23
24 // Wraps a platform-specific symmetric key and allows it to be held in a 24 // Wraps a platform-specific symmetric key and allows it to be held in a
25 // scoped_ptr. 25 // scoped_ptr.
26 class CRYPTO_API SymmetricKey { 26 class CRYPTO_EXPORT SymmetricKey {
27 public: 27 public:
28 // Defines the algorithm that a key will be used with. See also 28 // Defines the algorithm that a key will be used with. See also
29 // classs Encrptor. 29 // classs Encrptor.
30 enum Algorithm { 30 enum Algorithm {
31 AES, 31 AES,
32 HMAC_SHA1, 32 HMAC_SHA1,
33 }; 33 };
34 34
35 virtual ~SymmetricKey(); 35 virtual ~SymmetricKey();
36 36
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // fails with NTE_BAD_KEY/NTE_BAD_LEN 96 // fails with NTE_BAD_KEY/NTE_BAD_LEN
97 std::string raw_key_; 97 std::string raw_key_;
98 #endif 98 #endif
99 99
100 DISALLOW_COPY_AND_ASSIGN(SymmetricKey); 100 DISALLOW_COPY_AND_ASSIGN(SymmetricKey);
101 }; 101 };
102 102
103 } // namespace crypto 103 } // namespace crypto
104 104
105 #endif // CRYPTO_SYMMETRIC_KEY_H_ 105 #endif // CRYPTO_SYMMETRIC_KEY_H_
OLDNEW
« no previous file with comments | « crypto/signature_verifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698