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

Unified Diff: crypto/rsa_private_key.h

Issue 14941007: Add RSAPrivateKey::CreateFromKeypair() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Unittest Created 7 years, 7 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 | « no previous file | crypto/rsa_private_key_nss.cc » ('j') | crypto/rsa_private_key_nss.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/rsa_private_key.h
diff --git a/crypto/rsa_private_key.h b/crypto/rsa_private_key.h
index ff368d82ace88b6576dfdf2d154cce4b8a811ef3..1c14d783e653efec966e0f026b4782af2b21c529 100644
--- a/crypto/rsa_private_key.h
+++ b/crypto/rsa_private_key.h
@@ -200,6 +200,11 @@ class CRYPTO_EXPORT RSAPrivateKey {
static RSAPrivateKey* CreateSensitiveFromPrivateKeyInfo(
const std::vector<uint8>& input);
+#if defined(USE_NSS)
+ static RSAPrivateKey* CreateFromKeypair(SECKEYPrivateKeyStr* key,
+ SECKEYPublicKeyStr* public_key);
+#endif
+
// Import an existing public key, and then search for the private
// half in the key database. The format of the public key blob is is
// an X509 SubjectPublicKeyInfo block. This can return NULL if
« no previous file with comments | « no previous file | crypto/rsa_private_key_nss.cc » ('j') | crypto/rsa_private_key_nss.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698