[Cryptography-dev] ecdsa key x/y coordinates

2015-04-21 Thread Olivier Sallou
Hi, I load an ecdsa private key in my program: secret = load_pem_private_key(content_file.read().encode('utf-8'), password=None, backend=default_backend()) That's fine I need now to get the x and y coordinates of my ecdsa key to share

Re: [Cryptography-dev] ecdsa key x/y coordinates

2015-04-21 Thread Alex Gaynor
Hi Olivier, You can use the private_numbers() method: https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/#cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithNumbers.private_numbers To get an EllipticCurvePrivateNumbers which has x and y attributes. Alex On Tu