From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LaeTR-0002Zz-FQ for mharc-grub-devel@gnu.org; Fri, 20 Feb 2009 18:08:01 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaeTP-0002Yx-L2 for grub-devel@gnu.org; Fri, 20 Feb 2009 18:07:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaeTN-0002Y2-QP for grub-devel@gnu.org; Fri, 20 Feb 2009 18:07:59 -0500 Received: from [199.232.76.173] (port=34674 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaeTN-0002Xv-LH for grub-devel@gnu.org; Fri, 20 Feb 2009 18:07:57 -0500 Received: from xsmtp0.ethz.ch ([82.130.70.14]:1559) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaeTN-0005Ok-6E for grub-devel@gnu.org; Fri, 20 Feb 2009 18:07:57 -0500 Received: from xfe1.d.ethz.ch ([82.130.124.41]) by XSMTP0.ethz.ch with Microsoft SMTPSVC(6.0.3790.3959); Sat, 21 Feb 2009 00:07:55 +0100 Received: from [192.168.2.75] ([81.221.97.38]) by xfe1.d.ethz.ch over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Sat, 21 Feb 2009 00:07:55 +0100 Message-ID: <499F376C.60906@student.ethz.ch> Date: Sat, 21 Feb 2009 00:06:20 +0100 From: Jan Alsenz User-Agent: Thunderbird 2.0.0.19 (X11/20090104) MIME-Version: 1.0 To: The development of GRUB 2 References: <499F25B0.8000202@gmail.com> In-Reply-To: <499F25B0.8000202@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE66783BD967C2F45DA278688" X-OriginalArrivalTime: 20 Feb 2009 23:07:55.0736 (UTC) FILETIME=[1083A580:01C993B0] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ Subject: Re: SHA-1 MBR X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2009 23:07:59 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE66783BD967C2F45DA278688 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi! Wow, cool work! It's not complete SHA-1, but the rest should be just a constant offset. But I'm still not sure, what you are trying to do here, is the MBR your r= oot of trust? If not, who checks the MBR? Greets, Jan phcoder wrote: > Hello, as promised I wrote an mbr which performs SHA-1. To squeeze the > code I had to remove chs and to change the bootdrive installer will hav= e > to overwrite corresponding instruction. SHA-1 implemented in it is > little-endian and without padding. Standard version is big-endian and > with padding. In this case padding is unnecessary since a sector is > always 512 bytes. Litt-le endian means just that data isn't byte-swappe= d > before hashing. And the hash in sector has to be written in little > endian and the double should be in order > h1,h2,h3,h4,h0 > I also implemented the same thing as standalone program > Regards > Vladimir 'phcoder' Serbinenko --------------enigE66783BD967C2F45DA278688 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmfN3gACgkQfZylhtn4XvfExwCg3lpJXV6T6ejeQlY4xmoIRZkK /0kAoIxEd3Nsgo43rFG4yre/YHXKeV8K =QSgF -----END PGP SIGNATURE----- --------------enigE66783BD967C2F45DA278688--