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

Unified Diff: base/crypto/signature_creator.h

Issue 1528021: Implement PBKDF2-based key derivation, random key generation,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Make albertb's suggested changes. Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/crypto/scoped_capi_types.h ('k') | base/crypto/signature_creator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/crypto/signature_creator.h
===================================================================
--- base/crypto/signature_creator.h (revision 43766)
+++ base/crypto/signature_creator.h (working copy)
@@ -12,9 +12,6 @@
struct SGNContextStr;
#elif defined(OS_MACOSX)
#include <Security/cssm.h>
-#elif defined(OS_WIN)
-#include <windows.h>
-#include <wincrypt.h>
#endif
#include <vector>
@@ -22,6 +19,10 @@
#include "base/basictypes.h"
#include "base/crypto/rsa_private_key.h"
+#if defined(OS_WIN)
+#include "base/crypto/scoped_capi_types.h"
+#endif
+
namespace base {
// Signs data using a bare private key (as opposed to a full certificate).
@@ -51,7 +52,7 @@
#elif defined(OS_MACOSX)
CSSM_CC_HANDLE sig_handle_;
#elif defined(OS_WIN)
- HCRYPTHASH hash_object_;
+ ScopedHCRYPTHASH hash_object_;
#endif
DISALLOW_COPY_AND_ASSIGN(SignatureCreator);
« no previous file with comments | « base/crypto/scoped_capi_types.h ('k') | base/crypto/signature_creator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698