Received: from eggs.gnu.org ([140.186.70.92]:39868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qyr0W-0003zD-SS for qemu-devel@nongnu.org; Wed, 31 Aug 2011 16:03:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qyr0R-0002YD-Dt for qemu-devel@nongnu.org; Wed, 31 Aug 2011 16:03:32 -0400 Received: from mail-ew0-f45.google.com ([209.85.215.45]:49850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qyr0R-0002Y7-8A for qemu-devel@nongnu.org; Wed, 31 Aug 2011 16:03:27 -0400 Received: by ewy24 with SMTP id 24so809335ewy.4 for ; Wed, 31 Aug 2011 13:03:26 -0700 (PDT) Date: Wed, 31 Aug 2011 22:03:24 +0200 From: "Edgar E. Iglesias" Message-ID: <20110831200324.GB18881@zapo> References: <20110831194540.700948503@linux.vnet.ibm.com> <20110831194606.997238750@linux.vnet.ibm.com> <20110831195858.GA18881@zapo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110831195858.GA18881@zapo> Subject: Re: [Qemu-devel] [PATCH V7 5/9] Support for BIOS interrupt handler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Berger Cc: chrisw@redhat.com, seabios@seabios.org, qemu-devel@nongnu.org On Wed, Aug 31, 2011 at 09:58:58PM +0200, Edgar E. Iglesias wrote: > On Wed, Aug 31, 2011 at 03:45:45PM -0400, Stefan Berger wrote: > > This patch implements the TCG BIOS interrupt handler 1ah. It is for > > example used by trusted grub. > > > > This patch adds an implementation of SHA1 (following NIST specs., IETF RFC 3147 > > and Wikipedia) for speeding up measurements of code. Trusted Grub for example > > makes use of this interface and measures (calculates SHA1) of the Linux kernel > > and initrd. Those files can be rather large and hunting their bytes through > > the TIS interface as part of the int handler commands invoked by trusted grub > > does take quite some time due to the many vmexits the interface is creating > > (one per byte). > > > > There is also a threshold for the size of data to hash (100k) below which > > the TPM is used and above the internal faster SHA1 algorithm is used. > > Hi Stefan, > > A question: > Is there a reason for not reusing the SHA1 implementation from other libraries, > like OpenSSL? > > I've got a couple of cryptographic device models on my end (some of them > that I may contribute at some point) that will need the various SHA hashes > and other ciphers. > > In my case, there might be tons of data beeing hashed and when available, > it would be nice to be able to use cryptographic hw acceleration which > may be provided by OpenSSL engines. Or even, just heavily optimized > assembly versions of them. Woops, maybe this particular piece of code was not for QEMU proper... Cheers