Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Information needed to utilize TPM in Java

Tags:

java

tpm

I'm reading up on my upcoming project that involves using my laptop's TPM on authentication software written in Java.

A few entries came out on Google, but most of them are quite old, and I have no idea which is the best tutorial. So I'd like to know what's the recommended API to use, and where is the best place to get information from.

Thanks.

like image 353
segfault Avatar asked Aug 19 '11 21:08

segfault


2 Answers

To communicate with a TPM you need a Trusted Software Stack (TSS). There are two major freely available TSS: TrouSerS and jTSS.

jTSS is written in Java, whereas TrouSerS is written in C. When using the pure Java jTSS you don't need jTSSWrapper. The wrapper is only needed when you want to access TrouSerS TSS through Java.

The jTpm Tools provide some command line tools to interact with the TPM. When looking at the source code of the tools you can figure out how to use jTSS API.

For more stuff related to Trusted Computing and Java have a look at http://trustedjava.sourceforge.net/

There's also a JSR that tries to define a high-level Java API for Trusted Computing, you can find the information as well as a reference implementation at http://jsr321.java.net/ (including public readable SVN repo).

like image 122
Scolytus Avatar answered Nov 02 '22 03:11

Scolytus


start reading here.

http://trustedjava.sourceforge.net/

There is any Information you need. To access your TPM (I would suggest you to do first tests with the famous TPM Emulator from http://tpm-emulator.berlios.de/)

In Java you need the Package jTSSWrapper. Just look at the test-code insight the package to get a very first impression.

like image 38
evildead Avatar answered Nov 02 '22 01:11

evildead