From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Strong Crypto Support for GRUB2
Date: Mon, 3 Sep 2007 01:05:14 +0200 [thread overview]
Message-ID: <20070902230514.GA13963@thorin> (raw)
In-Reply-To: <20070902225345.81fa084c.dn.tlp@gmx.net>
On Sun, Sep 02, 2007 at 10:53:45PM +0200, Simon Peter wrote:
> > > +#ifndef GET_UINT32_BE
> > > +#define GET_UINT32_BE(n,b,i) \
> > > +{ \
> > > + (n) = ( (uint32) (b)[(i) ] << 24 ) \
> > > + | ( (uint32) (b)[(i) + 1] << 16 ) \
> > > + | ( (uint32) (b)[(i) + 2] << 8 ) \
> > > + | ( (uint32) (b)[(i) + 3] ); \
> > > +}
> > Doesn't follow GCS indentation style in a number of places. I would
> > suggest using the indent(1) tool on it.
>
> Any specific options that I shall use?
I use it without options. But please note that I'm not the guy in charge
here, just providing advice on what I think the maintainers will like to see
(since Marco and Okuji are often busy).
> > > +GRUB_MOD_INIT(crypto)
> > > +{
> > > + (void)mod; /* To stop warning. */
> > > + grub_crypto_cipher_register(&grub_cipher_none);
> > > + grub_crypto_cipher_register(&grub_hash_none);
> > > +}
> > Which warning was that?
>
> Actually, I copied that line verbatim from hello.c, the GRUB hello
> world module. :) It seems that warning is long gone.
Oh. It seems that lot of modules have this, and there are no gcc warnings
when removing them. I would go and remove them all, unless we're missing
something; anyone knows about them?
> > 3) doesn't look GPL-compatible. As for 1), note the author is
> > claiming ownership of any patents that might be covered by this
> > code. GPL compatibility aside, I'm not sure what the consequences of
> > accepting the license would be (could it lead to someone
> > acknowledging K.U.Leuven as the owner of their own patents?), but it
> > looks dangerous.
>
> Interesting, as RIPEMD is known to be one of the most open and
> unencumbered hash functions (see http://en.wikipedia.org/wiki/RIPEMD).
> There are no patents covering the code. :)
Ah, that is good (although on patents you can never be sure if one exists).
My point is that this particular wording is a bit slippery, and I don't
think it means what the author intended (IANAL, etc).
> > > +enum grub_cipher_type
> > > + {
> > > + GRUB_CIPHER_TYPE_NONE = 0,
> > > + GRUB_CIPHER_TYPE_CIPHER = 1,
> > > + GRUB_CIPHER_TYPE_HASH = 2
> > > + };
> > Wasn't the point of using enum to avoid hardcoding these numbers? :-)
>
> Woops. I thought you guys were doing the same and that's why I did it.
> I reverted that (leaving NONE = 0 intact).
Oh, didn't notice that. Then I suppose you're better off keeping the numbers.
> I'm going to post another patch with your comments implemented, after I
> have your reply (I need to know what to pass to indent(1)).
Don't forget the ChangeLog entry ;-)
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
next prev parent reply other threads:[~2007-09-02 23:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-02 12:17 Strong Crypto Support for GRUB2 Simon Peter
2007-09-02 16:05 ` Robert Millan
2007-09-02 17:25 ` Simon Peter
2007-09-02 19:41 ` Robert Millan
2007-09-02 20:53 ` Simon Peter
2007-09-02 23:05 ` Robert Millan [this message]
2007-09-03 18:51 ` Simon Peter
2007-11-10 17:20 ` Marco Gerards
2007-09-03 9:42 ` Patrick Georgi
-- strict thread matches above, loose matches on Subject: below --
2007-09-13 9:16 Simon Peter
2007-11-10 17:22 ` Marco Gerards
2008-07-20 23:49 Fw: " Simon Peter
2008-07-21 13:48 ` Colin D Bennett
2008-07-21 20:38 ` Simon Peter
2008-07-22 22:12 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070902230514.GA13963@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox