From 416f526a3d809d330b4a990bdf4a742384bde8f8 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 23 May 2017 23:38:59 -0700 Subject: add convenience methods for key_size on EC{Public,Private}Key (#3587) --- docs/hazmat/primitives/asymmetric/ec.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3