aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-05-23 23:38:59 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2017-05-23 23:38:59 -0700
commit416f526a3d809d330b4a990bdf4a742384bde8f8 (patch)
tree93db904bb4dc50dd572d2cb4c54c0dee9bd12eb6 /docs
parent0517d1ae49061f486e2e4d279d70b6b61361de2f (diff)
downloadcryptography-416f526a3d809d330b4a990bdf4a742384bde8f8.tar.gz
cryptography-416f526a3d809d330b4a990bdf4a742384bde8f8.tar.bz2
cryptography-416f526a3d809d330b4a990bdf4a742384bde8f8.zip
add convenience methods for key_size on EC{Public,Private}Key (#3587)
Diffstat (limited to 'docs')
-rw-r--r--docs/hazmat/primitives/asymmetric/ec.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/ec.rst b/docs/hazmat/primitives/asymmetric/ec.rst
index 3c595fac..46f2f5ac 100644
--- a/docs/hazmat/primitives/asymmetric/ec.rst
+++ b/docs/hazmat/primitives/asymmetric/ec.rst
@@ -459,6 +459,15 @@ Key Interfaces
:return bytes: Signature.
+ .. attribute:: key_size
+
+ .. versionadded:: 1.9
+
+ :type: int
+
+ Size (in bits) of a secret scalar for the curve (as generated by
+ :func:`generate_private_key`).
+
.. class:: EllipticCurvePrivateKeyWithSerialization
@@ -565,6 +574,15 @@ Key Interfaces
:raises cryptography.exceptions.InvalidSignature: If the signature does
not validate.
+ .. attribute:: key_size
+
+ .. versionadded:: 1.9
+
+ :type: int
+
+ Size (in bits) of a secret scalar for the curve (as generated by
+ :func:`generate_private_key`).
+
.. class:: EllipticCurvePublicKeyWithSerialization