From: Raja <raj...@ho...> - 2015-06-05 13:45:16
|
Folks, I have found some success porting the java code for TPM to C#. I had to make a few changes to how reflection is handled in Java, some HashTables to Dictionaries, and some inheritance related nuances. At this time my company is looking in to contributing this module back to the community - pending legal team review. The code works when I query TPM capabilities, read PCR values, create osap session etc (including verifying if an NV index is already defined)... However NVDefineSpace just does not work. I have verified that I was able to define NV space by using the Java code using local binding (which supposedly uses TBS API in Windows). The only difference between my code in C# and the code in Java is the native DLL call to TBS API in Windows. I am trying to get my hands on the native DLL supplied by Trusted Java library but to no avail. Can someone please point me the code for the native DLL? I would like to compare my code and see what I am doing wrong. One might argue I could use the native DLL "as is" from Trusted Java but I cant do that because in order to be part of our whole infrastructure the DllMain in the DLL needs to have certain security related code executed. Thanks in advanceRaja |