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

Unified Diff: base/crypto/signature_verifier.h

Issue 1558018: Implements support for PBKDF2-based key derivation, random key generation, an... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Style fixup Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/crypto/signature_creator_win.cc ('k') | base/crypto/signature_verifier_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/crypto/signature_verifier.h
===================================================================
--- base/crypto/signature_verifier.h (revision 43354)
+++ base/crypto/signature_verifier.h (working copy)
@@ -11,15 +11,16 @@
#include <cryptoht.h>
#elif defined(OS_MACOSX)
#include <Security/cssm.h>
-#elif defined(OS_WIN)
-#include <windows.h>
-#include <wincrypt.h>
#endif
#include <vector>
#include "base/basictypes.h"
+#if defined(OS_WIN)
+#include "base/crypto/scoped_capi_types.h"
+#endif
+
namespace base {
// The SignatureVerifier class verifies a signature using a bare public key
@@ -90,11 +91,11 @@
CSSM_KEY public_key_;
#elif defined(OS_WIN)
- HCRYPTPROV provider_;
+ ScopedHCRYPTPROV provider_;
- HCRYPTHASH hash_object_;
+ ScopedHCRYPTHASH hash_object_;
- HCRYPTKEY public_key_;
+ ScopedHCRYPTKEY public_key_;
#endif
};
« no previous file with comments | « base/crypto/signature_creator_win.cc ('k') | base/crypto/signature_verifier_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698