Simulating Hardware security module
<p>I want to implement part of HSM but first I need to simulate it in software.
I want to have a complete isolated enviroment(?) that works like real HSM.
My chosen API is pkcs#11 .</p>

<p>should i do something like cryptech,implementing pkcs#11 as rpc ?
Can i translate pkcs#11 commands and use one of the many cryptographic libraries that are available ? ( cryptlib &amp; OpenSSL &amp; ... )</p>

<p>PS : I know softHSM but i want something that i completely know how it works and i can configure it + good documentation which i didn't find about softHSM.</p>

<p>Thanks </p>