From: Marcel S. <m.s...@si...> - 2011-07-28 13:23:35
|
Hi, I found the issue. The problem is, that you have a 64-bit machine, however the code requires to be compiled for 32-bit. If you compile with "-m32", it works. $ gcc -m32 create_sha1.c I will fix this in the installer script for the next release. Thanks for finding this issue. Thanks, Marcel Am 28.07.2011 15:00, schrieb Olga Chen: > I am using TrustedGRUB 1.1.5, and I just checked my utils/create_sha1 and it > gives me 40-byte output, so I am not sure why your version gives you 80 > bytes. > Actually, when I created my checkfile, I used sha1sum utility on Linux > instead of utils/create_sha1. You might want to try that. In the meantime, > maybe someone can shed the light onto why you are getting an 80-byte output. > > Olga > > On Thu, Jul 28, 2011 at 6:01 AM, Yash Jain <yas...@gm...> wrote: > >> Hello All, >> I wanted to add a sha1 in a checkfile. >> i followed the procedure mentioned in read me file of trusted grub, >> 1. executed the file ./utils/create_sha1 <myfile> >> It gave me 80 digit checksum with the filename, copied the same data >> into file but my system does not boot. >> >> I checked in the boot.c, it parses only first forty bytes fron the >> file and expects ' '<space>, but i am not understanding then why >> create_sha1 is giving me 80 bytes of result. >> >> Please help. >> >> Thanks and Regards, >> Yeshpal Jain. >> >> >> ------------------------------------------------------------------------------ >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> _______________________________________________ >> Trustedgrub-users mailing list >> Tru...@li... >> https://lists.sourceforge.net/lists/listinfo/trustedgrub-users >> > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > > > > _______________________________________________ > Trustedgrub-users mailing list > Tru...@li... > https://lists.sourceforge.net/lists/listinfo/trustedgrub-users -- Sirrix AG security technologies - http://www.sirrix.com Dipl.-Ing. Marcel Selhorst eMail: m.s...@si... Tel +49(681) 959 86-126 Fax +49(681) 959 86-526 get public key from keyserver Fingerprint 4138 E617 E62E 79D3 E663 BE5A 14E7 1CD8 7C98 21CC Vorstand: Ammar Alkassar (Vors.), Christian Stüble Vorsitzender des Aufsichtsrates: Dipl.-Ing. Harald Stöber Sitz der Gesellschaft: Homburg/Saar, HRB 3857 Amtsgericht Saarbrücken This message may contain confidential and/or privileged information. If you are not the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. |