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

Unified Diff: net/third_party/mozilla_security_manager/nsKeygenHandler.h

Issue 2866011: Don't need to copy the challenge data before calling DER_Encode because... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add a necessary typecast. Created 10 years, 6 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
Index: net/third_party/mozilla_security_manager/nsKeygenHandler.h
===================================================================
--- net/third_party/mozilla_security_manager/nsKeygenHandler.h (revision 50259)
+++ net/third_party/mozilla_security_manager/nsKeygenHandler.h (working copy)
@@ -47,6 +47,12 @@
#define DEFAULT_RSA_KEYGEN_PE 65537L
#define DEFAULT_RSA_KEYGEN_ALG SEC_OID_PKCS1_MD5_WITH_RSA_ENCRYPTION
+// Generates the key pair and the cert request (SPKAC), and returns a
+// base64-encoded string suitable for use as the form value of <keygen>.
+// Parameters:
+// key_size_in_bits: key size in bits (usually 2048)
+// challenge: challenge string sent by server
+// stores_key: should the generated key pair be stored persistently?
std::string GenKeyAndSignChallenge(int key_size_in_bits,
const std::string& challenge,
bool stores_key);

Powered by Google App Engine
This is Rietveld 408576698