<div dir="ltr"><div><div><div><div><div></div>Thanks Remy for asking the question in my mind.<br><br>"ENGINE_set_default_EC_METHOD" will be perfect to offload EC Point multiplication, doubling and addition offered by some h/w crypto accelerators.<br><br></div>Hi Matt,<br><br></div>What is the reason to keep ec_method, ecdh_method and ecdsa_method structure
 definitions in local header files ec_locl.h, ech_locl.h and ecs_locl.h 
respectively unlike their peers.. dh_method, dsa_method, rsa_meth_st and
 rand_meth_st which are defined in exported header files?<br><br>ENGINE_set_default_EC_METHOD is really nice idea. Even if it is not immediate, please discuss the possibility of having this with your team.<br><br></div>Thanks,<br></div>Thulasi.<br><div><div><div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 June 2015 at 18:28, Matt Caswell <span dir="ltr"><<a href="mailto:matt@openssl.org" target="_blank">matt@openssl.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div><div><br>
<br>
<br>
On 03/06/15 06:32, Rémy Grünblatt wrote:<br>
> Hello. I have a custom external hardware encryption chip that can<br>
> computes some operations like the addition of two points, the<br>
> inverse of one point, etc.<br>
><br>
> I read that if I want to move some calculus from openssl to this<br>
> chip, Openssl engines are the way to go.<br>
><br>
> By defining a custom EC_METHOD, for example, I can just move the<br>
> inverse on the chip while keeping other functions "in openssl"<br>
> (not moving them). Still, how do I ask to my Engine to use this<br>
> new custom EC_METHOD  ?<br>
><br>
> I see functions like ENGINE_set_default_ECDSA, or<br>
> ENGINE_set_default_ECDH, but I don't want to change thoses, only<br>
> the underlying EC_METHOD which is "used" for calculus.<br>
><br>
> I do not know if it's clear, but what i'm searching for is a kind<br>
> of "ENGINE_set_default_EC_METHOD" which could be used by the tests<br>
> from ectest.c, for example. Any idea ?<br>
<br>
</div></div>Unfortunately, I don't think such a thing exists. In fact the<br>
definition of EC_METHOD is not defined in any public header file so it<br>
is not currently possible to provide your own version without hacking<br>
OpenSSL itself.<br>
<br>
Matt<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
<br>
iQEcBAEBAgAGBQJVbvn8AAoJENnE0m0OYESRwtsH/1p941OTgrEMPuLlkyulf4DA<br>
E3HzZNqgShlGBK6y4NrI+1bwPAHNeRe1weQuaOokDqiY9k+Qh/B4ncKVKbH3kJFF<br>
c8xlKhf9GsMzsfV+sqeTSX0b16cvTbos0l6JEVGcypLib7jtcJcE9a966dC699Cz<br>
7k6Adq6mpznm30JFFARon0Ov7htLvCvU6nRgBnV3nSh/+++5iNe1ZQht06El92Ap<br>
VPvbYz54zePaQgndI/lgtNEA9RQcI/Zsbn3dJzs9FDWyMs4JCjf0Yl2oCtzfeb2c<br>
wMX6nJFiTOMa6rMUpPedTd2QS/XrOHUpPdcRxWpz4grYklqVAizlKrtHPutwrpo=<br>
=//we<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" target="_blank">https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
</blockquote></div><br></div></div></div></div>