From: ravi k. <rk...@ya...> - 2013-04-19 08:55:46
|
Hi Ronald, Thanks for your reply. Yes I called the create key method. Given below are list of method calls i used objKey.createKey(objsrk, null); objKey.loadKey(objsrk); objKey.getAttribData(TcTssConstants.TSS_TSPATTRIB_RSAKEY_INFO, TcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_MODULUS); objKey.getAttribData(TcTssConstants.TSS_TSPATTRIB_RSAKEY_INFO, TcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_EXPONENT); where objKey is rsa key object of type migratable | legacy and objsrk is the wrapping key. As said previously in trailing mail i am able to extract public key and modulus but failed to extract only rsa exponent Regards Ravi ________________________________ From: Ronald Tögl <ron...@ia...> To: Trustedjava IAIK <Tru...@li...> Cc: ravi kiran <rk...@ya...> Sent: Friday, 19 April 2013 1:36 PM Subject: Re: [Trustedjava-support] Failed to get RSA Exponent using getAttribData Hi Ravi, Did you actually call the createKey() method or did you just create the Java object? Ronald On 04/19/2013 09:35 AM, ravi kiran wrote: Hi > >I recently started working on jTss. >I have created a 2048 bit legacy key. > >I am getting Internal Software error while trying to export rsa key info using the below method > >objKey.getAttribData(TcTssConstants.TSS_TSPATTRIB_RSAKEY_INFO, TcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_EXPONENT); > >The complete error stack is given below > >iaik.tc.tss.api.exceptions.tsp.TcTspException: >TSS Error: >error layer: 0x3000 (TSP) >error code (without layer): 0x04 >error code (full): 0x3004 >error message: An internal SW error has been detected. >additional info: Getter method did throw unknown exception (not a TcTssException). >null > at iaik.tc.tss.impl.java.tsp.TcAttributes.getAttribData(TcAttributes.java:170). > > > >but when i try to get rsa modulus using below method call > > >objKey.getAttribData(TcTssConstants.TSS_TSPATTRIB_RSAKEY_INFO, TcTssConstants.TSS_TSPATTRIB_KEYINFO_RSA_MODULUS); > >i am getting result without error. > >My system configuration is windows7 Ultimate 64 bit,java-64 bit > > >Kindly assist me > > >Regards >Ravi > > >------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter > > >_______________________________________________ Trustedjava-support mailing list Tru...@li... https://lists.sourceforge.net/lists/listinfo/trustedjava-support -- Dipl.-Ing. Ronald Tögl phone +43 316/873-5502 Secure and Correct Systems fax +43 316/873-5520 IAIK ron...@ia... Graz University of Technology http://www.iaik.tugraz.at/ |