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

Unified Diff: crypto/ec_private_key.h

Issue 10700099: NSS Channel ID: don't check ECC support on every socket creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move the magic into ECPrivateKey Created 8 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
« no previous file with comments | « no previous file | crypto/ec_private_key_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/ec_private_key.h
diff --git a/crypto/ec_private_key.h b/crypto/ec_private_key.h
index 44f754b038c9e30d45dec3545b4779f4c1759b1a..371b069d63c5fd1b19202653b26f16ec609edcbd 100644
--- a/crypto/ec_private_key.h
+++ b/crypto/ec_private_key.h
@@ -21,6 +21,7 @@ typedef struct evp_pkey_st EVP_PKEY;
typedef struct CERTSubjectPublicKeyInfoStr CERTSubjectPublicKeyInfo;
typedef struct SECKEYPrivateKeyStr SECKEYPrivateKey;
typedef struct SECKEYPublicKeyStr SECKEYPublicKey;
+typedef struct PK11SlotInfoStr PK11SlotInfo;
#endif
Ryan Sleevi 2012/07/04 03:00:04 Still needed?
namespace crypto {
@@ -34,6 +35,9 @@ class CRYPTO_EXPORT ECPrivateKey {
public:
~ECPrivateKey();
+ // Returns whether the system supports elliptic curve cryptography.
+ static bool IsSupported();
+
// Creates a new random instance. Can return NULL if initialization fails.
// The created key will use the NIST P-256 curve.
// TODO(mattm): Add a curve parameter.
« no previous file with comments | « no previous file | crypto/ec_private_key_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698