<div dir="ltr">Hi!<div><br></div><div>There is also a function crypto:generate_key/3 that takes a private key as third argument, maybe that is what you want? </div><div><br></div><div>Regards Ingela Erlang/OTP team - Ericsson AB</div><div><span style="font-family:'courier new',courier,monospace;font-size:18px"> </span></div><div><font face="courier new, courier, monospace" size="4"><br></font><div class="gmail_extra"><div class="gmail_quote">2014-10-21 17:00 GMT+02:00 semmit mondo <span dir="ltr"><<a href="mailto:semmitmondo@freemail.hu" target="_blank">semmitmondo@freemail.hu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>Hi,</div>
<div> </div>
<div>How can I generate an ECDSA public key from the private one using crypto?</div>
<div>All I can do with it is to generate a public and private key pair at once:</div>
<div> </div>
<div><span style="font-size:18px"><span style="font-family:'courier new',courier,monospace"> {Pub, Priv} = crypto:generate_key(ecdh, prime239v3).</span></span></div>
<div> </div>
<div>but can't calculate the public key if the private key was known beforehand.</div>
<div> </div>
<div>(prime239v3 isn't important, it could be any EC curve...)</div>
<div> </div>
<div> </div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div></div></div>