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
Trustedjava-support@lists.sourceforge.net
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                            ronald.toegl@iaik.tugraz.at
Graz University of Technology   http://www.iaik.tugraz.at