Andrew (copied above) used it a little bit, but I think he hasn't worked on that project for a while now.
Internally, we are using a derivative of this for TPM 2.0, but it's in C++ and has a lot more dependencies. That's also free/open source, but it may be harder to use in your context. It largely depends on your needs. Only a few commands are implemented, although some are authenticated commands, so it should be relatively easy to add more. I am available for occasional light help (explain parts of the system and review patches). I don't know of anything else that would suit your purpose, but I haven't actively looked in a couple of years. On Fri, Jun 13, 2014 at 6:23 AM, Johnson, Douglas <[email protected]> wrote: > Luigi, > > > > Thanks for the information, I'll take a look at trunks. It may be all that > I need for my project. Do you know if others are using it? > > > > Doug > > > > From: Luigi Semenzato [mailto:[email protected]] > Sent: Thursday, June 12, 2014 11:17 AM > To: Johnson, Douglas > Cc: [email protected] > Subject: Re: [TrouSerS-users] trousers evaluation > > > > A while ago Mario and I (really!) wrote a small library for communicating > with the TPM, called trunks. When it was almost finished I realized we > could get our task done differently, and never used it. It started out as a > Chromium repo, but I moved it to github for convenience (with the blessings > of our open source gurus): > > > > https://github.com/semenzato/trunks > > > > Its main advantage is size. It's much smaller than trousers, so it's easier > to hack. Also, IIRC, the size of the binary is about 60k and could be > smaller if one needs only a subset of the commands. Compare (again IIRC) to > about 1MB for trousers. > > > > Most of the functionality goes into serializing (marshalling/unmarshalling) > TPM commands and structures. The library encodes the structure layouts into > bytecodes, which the serializing code interprets (compare to Trousers which > uses a C function for each structure). Given the typical speed of a TPM, > the interpretation overhead is negligible. > > > > I am happy to maintain it if anybody is going to send patches. > > > > > > > > On Thu, Jun 12, 2014 at 5:37 AM, Johnson, Douglas <[email protected]> > wrote: > > > > > > I'm working on a project for a small embedded system that will have a TPM > but will not have an operating system. I'm trying to determine if Trousers > will work in that environment. The TPM is connected to an FPGA containing a > 32 bit processor using SPI. I'll write a driver conforming to the TCG PC > Client-Specific TPM Interface Specification. I don't need TCP/IP access. I > have flash, so I might have a filesystem. Single threaded operation is > fine. > > > > So my questions are: > > > > Is trousers a reasonable starting point for me? > > Can trousers be made to work without an OS? > > What OS specific functions does trousers require? > > What areas of the code contain OS specific functions? > > Are there other software stacks that I should consider? (I have downloaded > tpmdd as an example driver.) > > > > > > Regards, > > Doug Johnson > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > TrouSerS-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/trousers-users > > ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ TrouSerS-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-users
