Re: [Tpm4java-users] Using TPM_Loadkey2 instead TPM_Loadkey
Brought to you by:
tews
From: JESUS M. M. <je...@ti...> - 2009-05-22 08:47:11
|
No, I hadn't done it yesterday, but I deactivated it now and it works like yesterday... I have commented when TPM_Loadkey method calls to authGetAndVerify just before return the keyHandle. If I do it, all works fine... Do you to know if there are any change to do for use authGetAndVerify method with TPM_Loadkey2?? Thank you very much Cheers Jesús Marcos -----Mensaje original----- De: Frederic Stumpf [mailto:fre...@si...] Enviado el: viernes, 22 de mayo de 2009 9:39 Para: JESUS MARCOS MORELL CC: tpm...@li... Asunto: Re: [Tpm4java-users] Using TPM_Loadkey2 instead TPM_Loadkey Have you deactivated the HMAC verification? TssLowlevel l = TssFactory.getLowlevel(); l.setCheckReply(false); Cheers, Frederic JESUS MARCOS MORELL wrote: > Hi, > > I am using the method "createAndStoreKey" for create and store a new key... when this method calls to "TPM_LoadKey" the response of the TPM is not right, it must be "TPM_LoadKey2" method. Then like I have read in the specifications page, I replace the cmCode for LoadKey by the cmCode for LoadKey2 (I replace 32 by 65). > > And here is the problem, when the "TPM_LoadKey" verifies the reply of the TPM the tpm4java says: > > reply authentication failed > > This exception is logic because I change the cmCode as I said before... If I comment when "TPM_LoadKey" calls for verification the things go right :) but I think this is not the best way to avoid the exceptions... > > Someone knows how to check the response of the TPM when "TPM_LoadKey2" method is using instead "TPM_Loadkey"?? > > > Thank you very much in advance > > Jesus Marcos > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Tpm4java-users mailing list > Tpm...@li... > https://lists.sourceforge.net/lists/listinfo/tpm4java-users > > -- Frederic Stumpf Department "Embedded Security and Trusted OS" Addr: Fraunhofer-Institute for Secure Information Technology SIT Parkring 4, 85748 Garching (near Munich), Germany WWW: http://www.sit.fraunhofer.de Phone: +49 89 322-9986-123 Fax: +49 89 322-9986-299 My signature is certified by Fraunhofer Certification Authority: http://pki.fraunhofer.de/FhG-CA-Certs/FhG-CA_v2_cert.der |