<div dir="ltr">That'd be perfect. If you need a hand I can make a first draft over the weekend.<div><br></div><div>Dario<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 14, 2015 at 2:45 PM, Alex Gaynor <span dir="ltr"><<a href="mailto:alex.gaynor@gmail.com" target="_blank">alex.gaynor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Perhaps an EllipticCurvePrivateNumbers.from_private_number_and_curve() would be appropriate to automatically compute the public key?<div><br></div><div>Alex</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Thu, May 14, 2015 at 12:11 PM, Paul Kehrer <span dir="ltr"><<a href="mailto:paul.l.kehrer@gmail.com" target="_blank">paul.l.kehrer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Hi Dario,</div> <div><div style="font-family:helvetica,arial;font-size:13px"><br></div><div style="font-family:helvetica,arial;font-size:13px">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: <a href="https://cryptography.io/en/latest/hazmat/primitives/asymmetric/rsa/#handling-partial-rsa-private-keys" target="_blank">https://cryptography.io/en/latest/hazmat/primitives/asymmetric/rsa/#handling-partial-rsa-private-keys</a>) so a function to do this makes sense to me.</div><div style="font-family:helvetica,arial;font-size:13px"><br></div><div style="font-family:helvetica,arial;font-size:13px">-Paul</div></div><div><div> <br><p style="color:#000">On May 14, 2015 at 3:21:29 AM, Dario Sneidermanis (<a href="mailto:dariosn@gmail.com" target="_blank">dariosn@gmail.com</a>) wrote:</p> </div></div><blockquote type="cite"><span><div><div></div><div><div><div>






<div dir="ltr">
<div>Hi,</div>
<div><br></div>
<div>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.</div>
<div><br></div>
<div>Why does it need the public_numbers, when it could compute
them (knowing the curve), by doing d*G (G being the curve
generator)?</div>
<div><br>
Is there any way to go from d to the ECPrivKey without doing d*G by
myself?</div>
<div><br></div>
<div>Thanks,</div>
<div>Dario</div>
</div></div></div>


_______________________________________________
<br>Cryptography-dev mailing list
<br><a href="mailto:Cryptography-dev@python.org" target="_blank">Cryptography-dev@python.org</a>
<br><a href="https://mail.python.org/mailman/listinfo/cryptography-dev" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a>
<br></div></div></span></blockquote></div><br>_______________________________________________<br>
Cryptography-dev mailing list<br>
<a href="mailto:Cryptography-dev@python.org" target="_blank">Cryptography-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/cryptography-dev" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div><div dir="ltr">"I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)<br>"The people's good is the highest law." -- Cicero<br><div>GPG Key fingerprint: 125F 5C67 DFE9 4084</div></div></div>
</font></span></div>
<br>_______________________________________________<br>
Cryptography-dev mailing list<br>
<a href="mailto:Cryptography-dev@python.org" target="_blank">Cryptography-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/cryptography-dev" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a><br>
<br></blockquote></div><br></div></div>