Strong Crypto Support for GRUB2
Did the message below ever arrive on the list?
I'm still interested in getting strong crypto into grub mainline and while it's still not in, I just saw you guys proposed this as a project for Google's summer of code. Are you going to point students at the code I already produced? Would be a shame if you have someone replicate the work already done.
What's missing to get my code into GRUB2 mainline?
Thanks!
Simon
Begin forwarded message:
Date: Sun, 3 Feb 2008 18:25:47 +0100
From: Simon Peter <[email protected]>
To: The development of GRUB 2 <[email protected]>
Cc: Marco Gerards <[email protected]>, Robert Millan <[email protected]>
Subject: Re: Strong Crypto Support for GRUB2
Quoted 1 line
Sorry for the *very* late reply.
Sorry for my late reply. I wasn't subscribed anymore (and I'm still not) and only now I found out that you replied...
Attached is my patch against current CVS with the changes you proposed incorporated.
I'd appreciate very much if you could review this complete patch again. Sorry for any inconvenience with my first weird double-patch.
Quoted 3 lines
Quoted 3 lines
(quoted diff) +2
-0+int +aes_self_test (int verbose) {
[...]
Quoted 2 lines
Review
Quoted 1 line
(quoted diff) +1
-0+ printf ("passed\n");Where does printf come from?
It's in a self-test routine that's actually never included in the GRUB source. Shall I remove the whole thing?
Thanks!
Simon
ChangeLog +12 -0
@@ -1,3 +1,15 @@ +2008-02-03 Simon Peter <[email protected]> + * disk/devmapper.c: New file. + * include/grub/crypto.h: New file. + * conf/common.rmk: Add devmapper.mod and dependency + declaratins. Add crypto.mod, aes.mod and rmd160.mod and dependency + declarations. + * include/grub/disk.h (grub_disk_dev_id): Add + `GRUB_DISK_DEVICE_CRYPTO_ID'. + * crypto/aes.c: New file. + * crypto/crypto.c: New file. + * crypto/rmd160.c: New file. + 2008-02-03 Yoshinori K. Okuji <[email protected]> * configure.ac (AC_INIT): Bumped to 1.96.
conf/common.rmk +24 -1
@@ -232,7 +232,7 @@ pkglib_MODULES += hello.mod boot.mod ter cmp.mod cat.mod help.mod font.mod search.mod \ loopback.mod configfile.mod echo.mod \ terminfo.mod test.mod blocklist.mod hexdump.mod \ - read.mod + read.mod devmapper.mod # For hello.mod. hello_mod_SOURCES = hello/hello.c
@@ -294,6 +294,11 @@ loopback_mod_SOURCES = disk/loopback.c loopback_mod_CFLAGS = $(COMMON_CFLAGS) loopback_mod_LDFLAGS = $(COMMON_LDFLAGS) +# For devmapper.mod +devmapper_mod_SOURCES = disk/devmapper.c +devmapper_mod_CFLAGS = $(COMMON_CFLAGS) +devmapper_mod_LDFLAGS = $(COMMON_LDFLAGS) + # For configfile.mod configfile_mod_SOURCES = commands/configfile.c configfile_mod_CFLAGS = $(COMMON_CFLAGS)
@@ -331,3 +336,21 @@ gzio_mod_LDFLAGS = $(COMMON_LDFLAGS) read_mod_SOURCES = commands/read.c read_mod_CFLAGS = $(COMMON_CFLAGS) read_mod_LDFLAGS = $(COMMON_LDFLAGS) + +# Cryptography. +pkgdata_MODULES += crypto.mod aes.mod rmd160.mod + +# For crypto.mod +crypto_mod_SOURCES = crypto/crypto.c +crypto_mod_CFLAGS = $(COMMON_CFLAGS) +crypto_mod_LDFLAGS = $(COMMON_LDFLAGS) + +# For aes.mod +aes_mod_SOURCES = crypto/aes.c +aes_mod_CFLAGS = $(COMMON_CFLAGS) +aes_mod_LDFLAGS = $(COMMON_LDFLAGS) + +# For rmd160.mod +rmd160_mod_SOURCES = crypto/rmd160.c +rmd160_mod_CFLAGS = $(COMMON_CFLAGS) +rmd160_mod_LDFLAGS = $(COMMON_LDFLAGS)
crypto/aes.c +1088 -0
1,088 lines not on this page · raw message
crypto/crypto.c +288 -0
288 lines not on this page · raw message
crypto/rmd160.c +437 -0
437 lines not on this page · raw message
disk/devmapper.c +416 -0
416 lines not on this page · raw message
include/grub/crypto.h +125 -0
125 lines not on this page · raw message
include/grub/disk.h +1 -0
@@ -37,6 +37,7 @@ enum grub_disk_dev_idGRUB_DISK_DEVICE_HOST_ID ,GRUB_DISK_DEVICE_ATA_ID ,GRUB_DISK_DEVICE_MEMDISK_ID , + GRUB_DISK_DEVICE_CRYPTO_ID, };struct grub_disk ;
Quoted 1 line · Simon Peter
Did the message below ever arrive on the list?
...
Quoted 5 lines
Date: Sun, 3 Feb 2008 18:25:47 +0100
From: Simon Peter <[email protected]>
To: The development of GRUB 2 <[email protected]>
Cc: Marco Gerards <[email protected]>, Robert Millan <[email protected]>
Subject: Re: Strong Crypto Support for GRUB2
I don't see it in the archives for February 2008:
http://lists.gnu.org/archive/html/grub-devel/2008-02/index.html
No idea why. But this message did arrive.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 5 lines · On Monday 21 July 2008 01:49:52 Simon Peter wrote:
I'm still interested in getting strong crypto into grub mainline and while it's still not in, I just saw you guys proposed this as a project for Google's summer of code. Are you going to point students at the code I already produced? Would be a shame if you have someone replicate the work already done.
Hi Simon
I've been working on a LUKS module[1] for GRUB, and have used your patch as a starting point. I have added a few extra functions to the crypto module, and implemented CBC in the crypto module itself. I have also added a number of ciphers and hashes[2]. I am still waiting for a proper review of my patch, and for some license issues to be resolved. I think that my changes have broken the devmapper module, but I intend to implement that functionality in the LUKS module some time.
Michael
[1] http://lists.gnu.org/archive/html/grub-devel/2008-05/msg00127.html
[2] http://lists.gnu.org/archive/html/grub-devel/2008-05/msg00157.html
Signature · 3 lines
http://michael.gorven.za.net PGP Key ID 6612FE85 S/MIME Key ID D33AEB31
Quoted 9 lines · On Mon, 21 Jul 2008 01:49:52 +0200 Simon Peter <[email protected]> wrote:
Did the message below ever arrive on the list?
I'm still interested in getting strong crypto into grub mainline and while it's still not in, I just saw you guys proposed this as a project for Google's summer of code. Are you going to point students at the code I already produced? Would be a shame if you have someone replicate the work already done.
What's missing to get my code into GRUB2 mainline?
I think you'll have to assign copyright to the FSF.
Regards,
Colin
Quoted 37 lines
Thanks!
SimonBegin forwarded message:
Date: Sun, 3 Feb 2008 18:25:47 +0100
From: Simon Peter <[email protected]>
To: The development of GRUB 2 <[email protected]>
Cc: Marco Gerards <[email protected]>, Robert Millan <[email protected]> Subject: Re: Strong Crypto Support for GRUB2Quoted 1 line
Sorry for the *very* late reply.
Sorry for my late reply. I wasn't subscribed anymore (and I'm still not) and only now I found out that you replied...
Attached is my patch against current CVS with the changes you proposed incorporated.
I'd appreciate very much if you could review this complete patch again. Sorry for any inconvenience with my first weird double-patch.
Quoted 3 lines
Quoted 3 lines
crypto/aes.c +2
-0+int +aes_self_test (int verbose) {[...]
Quoted 2 lines
crypto/aes.c line 955
Quoted 1 line
crypto/aes.c +1
-0+printf ("passed\n" );Where does printf come from?
It's in a self-test routine that's actually never included in the GRUB source. Shall I remove the whole thing?
Thanks!
Simon
Quoted 2 lines
Quoted 1 line
What's missing to get my code into GRUB2 mainline?
I think you'll have to assign copyright to the FSF.
What part of it?
I learned that Michael Gorven already replaced the problematic parts (RIPEMD and AES) with versions from libgcrypt. The rest of the code is all GPL3. Is it about the extra copyright line with my name in it?
Simon
Quoted 7 lines · Simon Peter
Quoted 2 lines
Quoted 1 line
What's missing to get my code into GRUB2 mainline?
I think you'll have to assign copyright to the FSF.
What part of it?
I learned that Michael Gorven already replaced the problematic parts (RIPEMD and AES) with versions from libgcrypt.
That sounds very good. I think it was the stumbling block last time.
I expect Marco or Okuji will contact you soon about copyright assignment. If they haven't already, you might want to mail them a reminder.
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What good is a phone call… if you are unable to speak? (as seen on /.)