Re: [Cryptography-dev] ECPrivateKey form private_value

2015-05-14 Thread Alex Gaynor
Perhaps an EllipticCurvePrivateNumbers.from_private_number_and_curve() would be appropriate to automatically compute the public key? Alex On Thu, May 14, 2015 at 12:11 PM, Paul Kehrer wrote: > Hi Dario, > > The creation of an EllipticCurvePrivateNumbers object does require you to > do d*G yours

Re: [Cryptography-dev] ECPrivateKey form private_value

2015-05-14 Thread Paul Kehrer
Hi Dario, The creation of an EllipticCurvePrivateNumbers object does require you to do d*G yourself at this time. There is some precedent for us adding functions to compute other elements (see:  https://cryptography.io/en/latest/hazmat/primitives/asymmetric/rsa/#handling-partial-rsa-private-keys

[Cryptography-dev] ECPrivateKey form private_value

2015-05-14 Thread Dario Sneidermanis
Hi, I'm trying to compute an EllipticCurvePrivateKey from a private_value (d). It seems that the only way to achieve this is to create an EllipticCurvePrivateNumbers object, but the constructor takes both the private_value and the public_numbers. Why does it need the public_numbers, when it could