<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
<div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, serif, "EmojiFont";">
<p><span style="font-size:11pt">Hello,</span></p>
<p><span style="font-size:11pt">I was looking for benchmarking the execution time of Elliptic Curve based Diffie Hellman of the OpenSSL implementation in C just for my own purpose of understanding. Is there any easy way to do that by coding in C ? Do you have
 any sample code for that ? </span><br>
</p>
<p><br>
</p>
<p><span style="font-size:11pt">(<span style="font-size:10pt">I have used  </span>
</span><span class="x_comment-copy"><code><br>
</code></span></p>
<p><span class="x_comment-copy"><code><span style="font-size: 10pt; font-family: monospace, serif, "EmojiFont";">time openssl ecparam -name secp256k1 -genkey -noout -out secp256k1-key.pem</span></code></span></p>
<p><span class="x_comment-copy"><code><span style="font-size: 10pt; font-family: monospace, serif, "EmojiFont";">in command line. And it does give me some average timing. )</span></code></span></p>
<p><span class="x_comment-copy"><code><br>
</code></span></p>
<p><span class="x_comment-copy"><code><span style="font-size: 10pt; font-family: monospace, serif, "EmojiFont";">But using this I don't get timing for generation of shared secret key. Also I would like to know if affine coordinates are used or Jacobian projective
 coordinates are being used? Is there any way to know all these ?</span><br>
</code></span></p>
<p><span class="x_comment-copy"><code><br>
</code></span></p>
<p><span class="x_comment-copy"><code></code></span><span style="font-size:11pt">I also tried this code -> 
</span><br>
</p>
<p><span style="font-size:11pt">The code over here gives me a bunch of error </span>
<br>
</p>
<p><a href="https://wiki.openssl.org/index.php/Elliptic_Curve_Diffie_Hellman" target="_blank" rel="noopener noreferrer" class="x_OWAAutoLink" id="LPlnk724067" title="Ctrl+Click or tap to follow the link" previewremoved="true"><span style="font-size:11pt">https://wiki.openssl.org/index.php/Elliptic_Curve_Diffie_Hellman</span></a></p>
<p><br>
</p>
<p><span style="font-size:11pt">Is there any other reliable source that has been used before ? If someone knows can you please forward me or let me know? That would be extremely helpful. Thank you for your patience</span><font size="2"><span style="font-size:11pt">.
</span><br>
</font></p>
<p><font size="2"><br>
</font></p>
<p><font size="2"><span style="font-size:11pt">Thanks and regards</span></font></p>
<p><font size="2"><span style="font-size:11pt">Tanushree Banerjee</span><br>
</font></p>
<p><font size="2">Graduate Student</font></p>
<p><font size="2">University of Waterloo<br>
</font></p>
<p><br>
</p>
</div>
</div>
</div>
<span class="PersonaPaneLauncher">
<div class="_pe_d _pe_62" tabindex="-1"></div>
</span>
<p></p>
</div>
</body>
</html>