From: Raja <raj...@ho...> - 2015-06-11 18:22:21
|
Hi Johannes, Thanks again. I don't need the p/Invoke stuffs. I already have my own DLL that does that, I converted jTSS java code to C#. I wrote my own DLL for tbs_submit_command, because code for jTssTddlVista.dll is not public. With the C#-convert code and my own DLL, I can query TPM version, capabilities, PCR values etc.. and they all work. For some reason NVDefineSpace is the only call that fails. The return code I get is 1 on one machine and 34 (0x22) on another machine. This error code is not listed as any TPM related error code. The reason I am after jTssTddlVista code is I want to see what it is doing that I am not. Is it possible certain TPM commands must be run under SYSTEM account? I run my code as an admin but that does not help. I wonder if my code should be run under SYSTEM context (from a service). ThanksRaja > Date: Thu, 11 Jun 2015 12:40:21 +0200 > From: joh...@ia... > To: tru...@li... > Subject: Re: [Trustedjava-support] jTssTddlVista.dll > > Hello, > > Am 10.06.2015 um 22:15 schrieb Raja: > [...] > > Hello, > > > > I am looking for source code for jTssTddlVista.dll. Where can I find it? > > > > Thanks > > Raja > [...] > > As far as I know the sources for jTssTddlVista.dll have never been > released publicly (for reasons I don't fully understand). Actually that > DLL is nothing more than a small JNI wrapper around Windows TBS. > > If you are looking for a C# alternative (P/Invoke based), which does not > rely on external (non-system) DLLs, have a look at the > TPMBaseServices.cs class from "doTSS" [1]. > > ("doTSS" actually was a student project aiming to create a > proof-of-concept TPM stack for .NET) > > Best, > Johannes > > [1] > https://github.com/deveck/doTSS/blob/master/tpm_lib/tpm_lowlvl/backends/win32/TPMBaseServices.cs > -- > Johannes Winter, IAIK - Graz University of Technology __ > Inffeldgasse 16a, 8010 Graz, Austria __ _| |_ > Phone: +43 316 873 5578 | || | > Fax: +43 316 873 5520 |_ _||__| > http://www.iaik.tugraz.at/ |__| IAIK > > ------------------------------------------------------------------------------ > _______________________________________________ > Trustedjava-support mailing list > Tru...@li... > https://lists.sourceforge.net/lists/listinfo/trustedjava-support |