aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-10-28 11:10:46 +0900
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-10-28 11:19:12 +0900
commit4ef99da4918d37ce34890c78a34f28755cb34ef7 (patch)
tree554457c88ab260fa90b27f8f1825820783f9cb05 /src
parentd3f4ecdbefe20f4f9cb8b74701c5757557e476e1 (diff)
downloadcryptography-4ef99da4918d37ce34890c78a34f28755cb34ef7.tar.gz
cryptography-4ef99da4918d37ce34890c78a34f28755cb34ef7.tar.bz2
cryptography-4ef99da4918d37ce34890c78a34f28755cb34ef7.zip
add ellipticcurvepublicnumbers repr
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/primitives/asymmetric/ec.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/primitives/asymmetric/ec.py b/src/cryptography/hazmat/primitives/asymmetric/ec.py
index 7782133c..eda7df0c 100644
--- a/src/cryptography/hazmat/primitives/asymmetric/ec.py
+++ b/src/cryptography/hazmat/primitives/asymmetric/ec.py
@@ -302,6 +302,12 @@ class EllipticCurvePublicNumbers(object):
def __ne__(self, other):
return not self == other
+ def __repr__(self):
+ return (
+ "<EllipticCurvePublicNumbers(curve={0.curve.name}, x={0.x}, "
+ "y={0.y}>".format(self)
+ )
+
class EllipticCurvePrivateNumbers(object):
def __init__(self, private_value, public_numbers):