diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 23:48:44 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 23:48:44 +0000 |
commit | 9493ee95cd8475d2ce39276fddca3b4b3d3ae73e (patch) | |
tree | c9888c464ba0261f5daf7caaa6534c5510a12289 /base/crypto | |
parent | 34ca58555bb67f8f72b84ba07b5c935928e2db3d (diff) | |
download | chromium_src-9493ee95cd8475d2ce39276fddca3b4b3d3ae73e.zip chromium_src-9493ee95cd8475d2ce39276fddca3b4b3d3ae73e.tar.gz chromium_src-9493ee95cd8475d2ce39276fddca3b4b3d3ae73e.tar.bz2 |
Base: Last set of files to use BASE_API (for base.dll)
Note that a bunck of these files have no unit tests :(
BUG=76996
TEST=none
Review URL: http://codereview.chromium.org/6747014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79633 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/crypto')
-rw-r--r-- | base/crypto/capi_util.h | 14 | ||||
-rw-r--r-- | base/crypto/encryptor.h | 5 | ||||
-rw-r--r-- | base/crypto/rsa_private_key.h | 5 | ||||
-rw-r--r-- | base/crypto/secure_hash.h | 3 | ||||
-rw-r--r-- | base/crypto/signature_creator.h | 3 | ||||
-rw-r--r-- | base/crypto/signature_verifier.h | 5 | ||||
-rw-r--r-- | base/crypto/symmetric_key.h | 5 |
7 files changed, 24 insertions, 16 deletions
diff --git a/base/crypto/capi_util.h b/base/crypto/capi_util.h index df7f749..f4b7e68 100644 --- a/base/crypto/capi_util.h +++ b/base/crypto/capi_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -9,6 +9,8 @@ #include <windows.h> #include <wincrypt.h> +#include "base/base_api.h" + namespace base { // CryptAcquireContext when passed CRYPT_NEWKEYSET or CRYPT_DELETEKEYSET in @@ -21,11 +23,11 @@ namespace base { // "The CryptAcquireContext function is generally thread safe unless // CRYPT_NEWKEYSET or CRYPT_DELETEKEYSET is specified in the dwFlags // parameter." -BOOL CryptAcquireContextLocked(HCRYPTPROV* prov, - LPCWSTR container, - LPCWSTR provider, - DWORD prov_type, - DWORD flags); +BASE_API BOOL CryptAcquireContextLocked(HCRYPTPROV* prov, + LPCWSTR container, + LPCWSTR provider, + DWORD prov_type, + DWORD flags); } // namespace base diff --git a/base/crypto/encryptor.h b/base/crypto/encryptor.h index 7718240..360a333 100644 --- a/base/crypto/encryptor.h +++ b/base/crypto/encryptor.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -8,6 +8,7 @@ #include <string> +#include "base/base_api.h" #include "build/build_config.h" #if defined(USE_NSS) @@ -20,7 +21,7 @@ namespace base { class SymmetricKey; -class Encryptor { +class BASE_API Encryptor { public: enum Mode { CBC diff --git a/base/crypto/rsa_private_key.h b/base/crypto/rsa_private_key.h index 5357adc..1f32982 100644 --- a/base/crypto/rsa_private_key.h +++ b/base/crypto/rsa_private_key.h @@ -22,6 +22,7 @@ struct SECKEYPublicKeyStr; #include <list> #include <vector> +#include "base/base_api.h" #include "base/basictypes.h" #if defined(OS_WIN) @@ -35,7 +36,7 @@ namespace base { // Used internally by RSAPrivateKey for serializing and deserializing // PKCS #8 PrivateKeyInfo and PublicKeyInfo. -class PrivateKeyInfoCodec { +class BASE_API PrivateKeyInfoCodec { public: // ASN.1 encoding of the AlgorithmIdentifier from PKCS #8. @@ -170,7 +171,7 @@ class PrivateKeyInfoCodec { // Encapsulates an RSA private key. Can be used to generate new keys, export // keys to other formats, or to extract a public key. // TODO(hclam): This class should be ref-counted so it can be reused easily. -class RSAPrivateKey { +class BASE_API RSAPrivateKey { public: ~RSAPrivateKey(); diff --git a/base/crypto/secure_hash.h b/base/crypto/secure_hash.h index 3759218..904d163 100644 --- a/base/crypto/secure_hash.h +++ b/base/crypto/secure_hash.h @@ -6,13 +6,14 @@ #define BASE_CRYPTO_SECURE_HASH_H_ #pragma once +#include "base/base_api.h" #include "base/basictypes.h" namespace base { // A wrapper to calculate secure hashes incrementally, allowing to // be used when the full input is not known in advance. -class SecureHash { +class BASE_API SecureHash { public: enum Algorithm { SHA256, diff --git a/base/crypto/signature_creator.h b/base/crypto/signature_creator.h index 3e3afd2..93cf83c 100644 --- a/base/crypto/signature_creator.h +++ b/base/crypto/signature_creator.h @@ -20,6 +20,7 @@ struct SGNContextStr; #include <vector> +#include "base/base_api.h" #include "base/basictypes.h" #include "base/crypto/rsa_private_key.h" @@ -31,7 +32,7 @@ namespace base { // Signs data using a bare private key (as opposed to a full certificate). // Currently can only sign data using SHA-1 with RSA encryption. -class SignatureCreator { +class BASE_API SignatureCreator { public: ~SignatureCreator(); diff --git a/base/crypto/signature_verifier.h b/base/crypto/signature_verifier.h index e2b61af..1a2c3e7 100644 --- a/base/crypto/signature_verifier.h +++ b/base/crypto/signature_verifier.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -16,6 +16,7 @@ #include <vector> +#include "base/base_api.h" #include "base/basictypes.h" #if defined(OS_WIN) @@ -26,7 +27,7 @@ namespace base { // The SignatureVerifier class verifies a signature using a bare public key // (as opposed to a certificate). -class SignatureVerifier { +class BASE_API SignatureVerifier { public: SignatureVerifier(); ~SignatureVerifier(); diff --git a/base/crypto/symmetric_key.h b/base/crypto/symmetric_key.h index ce98fa6..b72c840 100644 --- a/base/crypto/symmetric_key.h +++ b/base/crypto/symmetric_key.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -8,6 +8,7 @@ #include <string> +#include "base/base_api.h" #include "base/basictypes.h" #if defined(USE_NSS) @@ -22,7 +23,7 @@ namespace base { // Wraps a platform-specific symmetric key and allows it to be held in a // scoped_ptr. -class SymmetricKey { +class BASE_API SymmetricKey { public: // Defines the algorithm that a key will be used with. See also // classs Encrptor. |