2004-04-22 21:17:52

by Michal Ludvig

[permalink] [raw]
Subject: [PATCH] crypto_null autoload

--- linux-2.6.5.orig/crypto/crypto_null.c 2004-04-04 05:36:58.000000000 +0200
+++ linux-2.6.5/crypto/crypto_null.c 2004-04-22 22:47:22.323413336 +0200
@@ -94,6 +94,10 @@
.cia_decrypt = null_decrypt } }
};

+MODULE_ALIAS("compress_null");
+MODULE_ALIAS("digest_null");
+MODULE_ALIAS("cipher_null");
+
static int __init init(void)
{
int ret = 0;


Attachments:
kernel-cryptonull.diff (353.00 B)

2004-04-23 14:06:50

by James Morris

[permalink] [raw]
Subject: Re: [PATCH] crypto_null autoload

On Thu, 22 Apr 2004, Michal Ludvig wrote:

> Hi,
>
> the attached patch enables autoload of crypto_null module. Please apply.

It would be nice to also have these for:

alias des3_ede des
alias sha384 sha512



- James
--
James Morris
<[email protected]>


2004-04-27 12:36:33

by Michal Ludvig

[permalink] [raw]
Subject: Re: [PATCH] crypto_null autoload

diff -upr linux-2.6.5.orig/crypto/des.c linux-2.6.5/crypto/des.c
--- linux-2.6.5.orig/crypto/des.c 2004-04-04 05:38:22.000000000 +0200
+++ linux-2.6.5/crypto/des.c 2004-04-26 13:09:08.847375208 +0200
@@ -1269,6 +1269,8 @@ static struct crypto_alg des3_ede_alg =
.cia_decrypt = des3_ede_decrypt } }
};

+MODULE_ALIAS("des3_ede");
+
static int __init init(void)
{
int ret = 0;
diff -upr linux-2.6.5.orig/crypto/sha512.c linux-2.6.5/crypto/sha512.c
--- linux-2.6.5.orig/crypto/sha512.c 2004-04-04 05:38:18.000000000 +0200
+++ linux-2.6.5/crypto/sha512.c 2004-04-26 13:09:45.647780696 +0200
@@ -348,6 +348,8 @@ static struct crypto_alg sha384 = {
}
};

+MODULE_ALIAS("sha384");
+
static int __init init(void)
{
int ret = 0;


Attachments:
kernel-crypto-autoload-des+sha.diff (754.00 B)

2004-04-27 17:28:03

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] crypto_null autoload

On Tue, 27 Apr 2004 14:36:56 +0200
Michal Ludvig <[email protected]> wrote:

> > It would be nice to also have these for:
> >
> > alias des3_ede des
> > alias sha384 sha512
>
> Attached.

Applied, thanks.