From: "Steven French" <sfrench@us.ibm.com>
To: Andi Kleen <ak@suse.de>
Cc: David Woodhouse <dwmw2@infradead.org>, linux-kernel@vger.kernel.org
Subject: Re: MD4 and MD5 library routines (was CIFS filesystem for Linux 2.5_
Date: Thu, 10 Oct 2002 22:51:41 -0500 [thread overview]
Message-ID: <OF7527F406.BAF41604-ON87256C4F.00141231@boulder.ibm.com> (raw)
>> sfrench@us.ibm.com said:
>> > fs/cifs/md4.c | 209 +++
>> > fs/cifs/md5.c | 363 +++++
>> > fs/cifs/md5.h | 38
>>
>> Unless these are somehow CIFS-specific, they should live in linux/lib/
>
>This would have the disadvantage that they would need to be always
compiled into the
>kernel, even though it may not need it. And we already have code bloat
problems,
>no need to make it worse.
>
>Making them modular also isn't good. Each module takes a 4k page at least,
so you
>would waste a lot of memory because they're smaller than 4k.
>
>As long as they are not used by anything else it's probably best to keep
it
>where they are.
>
>-Andi
The routines are small enough, less than 500 loc total, that it would not
make a whole lot of difference either way. Although I noticed a few
different places where MD5 is implemented in other parts of the kernel, the
HMAC-MD5 support (in md5.c) needed for signing smb frames is probably not
needed by anyone else (except PPP?). I did not see any places (other than
cifs) that depend on md4 so that seems like it would not make sense to move
even though the code is pretty generic. The ASN decoding routines on the
other hand (used e.g. by snmp and also will be needed in the future by the
cifs vfs for simple SPNEGO-like parsing of the session establishment frame)
might end up being useful to move into a common library in the long run.
Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench@us.ibm.com
reply other threads:[~2002-10-11 3:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=OF7527F406.BAF41604-ON87256C4F.00141231@boulder.ibm.com \
--to=sfrench@us.ibm.com \
--cc=ak@suse.de \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®