|
From: Martin P. <Mar...@ia...> - 2007-09-11 09:18:10
|
cas...@al... wrote:
> an untrusted terminal has to do a quote operation
> the message the terminal has to send is: {pcr_set,nonce} signed with private aik,
> but i don't understand how i can retrieve this message from the structures the quote operation uses
TcTssValidation validation = TcTssStructFactory.newValidation();
validation.setExternalData(...nonce...);
TcIPcrComposite pcrSelection = context.createPcrCompositeObject(0);
pcrSelection.selectPcrIndex(...yourfavouritePCR...);
TcTssValidation quoteResult = context.getTpm().quote(aikKey, pcrSelection, validation);
... = quoteResult.getData(); // plain data
... = quoteResult.getValidationData(); // signature
HTH
--
Martin Pirker
IAIK, TU Graz
|