On Tue, Dec 22, 2015 at 11:03:09AM -0500, Stefan Berger wrote:
> "Kevin O'Connor" <kevin(a)koconnor.net> wrote on 12/22/2015 10:40:03 AM:
> > On Mon, Dec 21, 2015 at 11:50:07AM -0500, Stefan Berger wrote:
> > > tpm_foo()
> > > {
> > > [...]
> > >
> > > switch (tpmversion) {
> > > case TPM_VERSION_1_2:
> > > tpm12_foo()
> > > break;
> > > case TPM_VERSION_2:
> > > tpm2_foo();
> > > break;
> > > }
> > >
> > > [...]
> > > }
> >
> > Is the difference between 1.2 and 2.0 so large that the above is
> > needed?
>
> TPM 2 and TPM 1.2 have completely different commands, so yes,
> unfortunately it's needed.
Okay. Just so I understand, is TPM 2.0 a new interface to the
hardware, new BIOS API, or both?
-Kevin