On Mon, 2017-07-10 at 12:23 +0530, supraja sridhar wrote:
> Hi,
> 
> Using the trousers API, I generated a pair of keys and have the
> public part of the key. I will share the public key to others and
> they will encrypt data and send it back to my device where I use the
> TPM to decrypt the data.
> 
> I noticed that the public key is in a BYTE format. How should I
> convert it into a format such that it is compatible with OpennSSL.


If you use the tpm engine:

https://sourceforge.net/p/trousers/openssl_tpm_engine/ci/master/tree/

You can simply get openssl to give you a public key component in any
form:

openssl rsa -engine tpm -in <tpm key> -pubout -out tmp.pub

If you're lucky, your distro packages the tpm engine, so you should
just be able to get zypper/apt-get (or whatever your distro package
search engine is) to find it for you.

James


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to