<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Help is always appreciated; if you'd like to submit a PR we'll be happy to review it!</div> <div id="bloop_sign_1431750193496367872" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><br></div><div style="font-family:helvetica,arial;font-size:13px">-Paul</div></div> <br><p style="color:#000;">On May 15, 2015 at 3:26:29 PM, Dario Sneidermanis (<a href="mailto:dariosn@gmail.com">dariosn@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>


<title></title>


<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">
<div>
<div>
<div>
<div>
<div dir="ltr">
<div><span>Hi,</span></div>
<div><span><br></span></div>
<div><span>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.</span></div>
<div><span><br></span></div>
<div><span>Why does it need the public_numbers, when it could
compute them (knowing the curve), by doing d*G (G being the curve
generator)?</span></div>
<div><span><br>
Is there any way to go from d to the ECPrivKey without doing d*G by
myself?</span></div>
<div><span><br></span></div>
<div><span>Thanks,</span></div>
<div><span>Dario</span></div>
</div>
</div>
</div>
<span>_______________________________________________<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>
</span></div>
</div>
</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></font></span>
<div>
<div dir="ltr"><span><font color="#888888">"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></font></span>
<div><span><font color="#888888">GPG Key fingerprint: 125F
5C67 DFE9 4084</font></span></div>
</div>
</div>
</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>


_______________________________________________
<br>Cryptography-dev mailing list
<br>Cryptography-dev@python.org
<br>https://mail.python.org/mailman/listinfo/cryptography-dev
<br></div></div></span></blockquote></body></html>