<p dir="ltr">My understanding is as there are some similarities between my device and cryptodev device, i may follow the cryptodev. Is it right? If we want to take reference from any other engine iam not getting any similarity between my engine and any one from already implemented. If i go through with pkcs11 then please suggest any url or share any documents which will help me as i am new to this.</p>
<p dir="ltr">Thanks<br>
Animesh Das</p>
<div class="gmail_quote">On 15 May 2015 22:18, "David Woodhouse" <<a href="mailto:dwmw2@infradead.org">dwmw2@infradead.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2015-05-15 at 17:17 +0530, Animesh Das wrote:<br>
><br>
>  I have a new hardware crypto engine. The device can be accessed<br>
> from user space application opening the device  like<br>
> "/dev/mydevice". There are also some IOCTLs which can be used from<br>
> user space. I want to add that device as one of the engines of<br>
> OpenSSL so that the encryption/decryption process can be offloaded<br>
> to that device.<br>
><br>
> I have new to OpenSSL. Could you please help me giving ideas/steps<br>
> to add that engine in OpenSSL.<br>
<br>
My first inclination is to say "don't".<br>
<br>
Make it a PKCS#11 provider instead, and let OpenSSL use it through<br>
engine_pkcs11.<br>
<br>
(OpenSSL really ought to gain first-class support for PKCS#11 too,<br>
FWIW).<br>
<br>
-- dwmw2<br>
</blockquote></div>