summaryrefslogtreecommitdiffstats
path: root/crypto/ec_private_key.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-09 23:12:14 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-09 23:12:14 +0000
commitab782c97959278a043adb66edec252b5cd83f3cc (patch)
tree0bfd6ce06ea5aea556d36b26c85b88b0eaa7a501 /crypto/ec_private_key.h
parent228b038f0a4b4a5fc3ac68f94b97d1a8df63dad8 (diff)
downloadchromium_src-ab782c97959278a043adb66edec252b5cd83f3cc.zip
chromium_src-ab782c97959278a043adb66edec252b5cd83f3cc.tar.gz
chromium_src-ab782c97959278a043adb66edec252b5cd83f3cc.tar.bz2
NSS Channel ID: don't check ECC support on every socket creation.
Add static function to ECPrivateKey to get which NSS slot it uses. BUG=127506 Review URL: https://chromiumcodereview.appspot.com/10700099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/ec_private_key.h')
-rw-r--r--crypto/ec_private_key.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/ec_private_key.h b/crypto/ec_private_key.h
index 44f754b..bfd0862 100644
--- a/crypto/ec_private_key.h
+++ b/crypto/ec_private_key.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -34,6 +34,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.