aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/hazmat/primitives/asymmetric/ec.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptography/hazmat/primitives/asymmetric/ec.py')
-rw-r--r--src/cryptography/hazmat/primitives/asymmetric/ec.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/asymmetric/ec.py b/src/cryptography/hazmat/primitives/asymmetric/ec.py
index a527387b..7931b086 100644
--- a/src/cryptography/hazmat/primitives/asymmetric/ec.py
+++ b/src/cryptography/hazmat/primitives/asymmetric/ec.py
@@ -22,7 +22,7 @@ class EllipticCurve(object):
@abc.abstractproperty
def key_size(self):
"""
- The bit length of the base point of the curve.
+ Bit size of a secret scalar for the curve.
"""
@@ -63,6 +63,12 @@ class EllipticCurvePrivateKey(object):
"""
@abc.abstractproperty
+ def key_size(self):
+ """
+ Bit size of a secret scalar for the curve.
+ """
+
+ @abc.abstractproperty
def sign(self, data, signature_algorithm):
"""
Signs the data
@@ -98,6 +104,12 @@ class EllipticCurvePublicKey(object):
The EllipticCurve that this key is on.
"""
+ @abc.abstractproperty
+ def key_size(self):
+ """
+ Bit size of a secret scalar for the curve.
+ """
+
@abc.abstractmethod
def public_numbers(self):
"""