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

Side by Side Diff: crypto/symmetric_key.h

Issue 206453002: Introduce USE_OPENSSL_CERTS for certificate handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "crypto/crypto_export.h" 11 #include "crypto/crypto_export.h"
12 12
13 #if defined(NACL_WIN64) 13 #if defined(NACL_WIN64)
14 // See comments for crypto_nacl_win64 in crypto.gyp. 14 // See comments for crypto_nacl_win64 in crypto.gyp.
15 // Must test for NACL_WIN64 before OS_WIN since former is a subset of latter. 15 // Must test for NACL_WIN64 before OS_WIN since former is a subset of latter.
16 #include "crypto/scoped_capi_types.h" 16 #include "crypto/scoped_capi_types.h"
17 #elif defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX) 17 #elif !defined(USE_OPENSSL) && \
18 (defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX))
18 #include "crypto/scoped_nss_types.h" 19 #include "crypto/scoped_nss_types.h"
19 #endif 20 #endif
20 21
21 namespace crypto { 22 namespace crypto {
22 23
23 // 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
24 // scoped_ptr. 25 // scoped_ptr.
25 class CRYPTO_EXPORT SymmetricKey { 26 class CRYPTO_EXPORT SymmetricKey {
26 public: 27 public:
27 // 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
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 explicit SymmetricKey(PK11SymKey* key); 97 explicit SymmetricKey(PK11SymKey* key);
97 ScopedPK11SymKey key_; 98 ScopedPK11SymKey key_;
98 #endif 99 #endif
99 100
100 DISALLOW_COPY_AND_ASSIGN(SymmetricKey); 101 DISALLOW_COPY_AND_ASSIGN(SymmetricKey);
101 }; 102 };
102 103
103 } // namespace crypto 104 } // namespace crypto
104 105
105 #endif // CRYPTO_SYMMETRIC_KEY_H_ 106 #endif // CRYPTO_SYMMETRIC_KEY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698