netdev
[Top] [All Lists]

Re: [2.6.11-rc4-mm1 patch] fix buggy IEEE80211_CRYPT_* selects

To: Andrew Morton <akpm@xxxxxxxx>
Subject: Re: [2.6.11-rc4-mm1 patch] fix buggy IEEE80211_CRYPT_* selects
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Wed, 02 Mar 2005 17:41:50 -0500
Cc: bunk@xxxxxxxxx, netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <20050302131817.2e61805f.akpm@xxxxxxxx>
References: <20050223014233.6710fd73.akpm@xxxxxxxx> <20050226113123.GJ3311@xxxxxxxxx> <42256078.1040002@xxxxxxxxx> <20050302140833.GD4608@xxxxxxxxx> <42261004.4000501@xxxxxxxxx> <20050302123829.51dbc44b.akpm@xxxxxxxx> <42262B08.2040401@xxxxxxxxx> <20050302131817.2e61805f.akpm@xxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922
Andrew Morton wrote:
Jeff Garzik <jgarzik@xxxxxxxxx> wrote:

Thing is, CRYPTO_AES on only selectable on x86.

You're thinking about CRYPTO_AES_586. But looking at crypto/Kconfig, the dependencies are a bit weird:

config CRYPTO_AES
         tristate "AES cipher algorithms"
         depends on CRYPTO && !(X86 && !X86_64)
config CRYPTO_AES_586
         tristate "AES cipher algorithms (i586)"
         depends on CRYPTO && (X86 && !X86_64)


That's pretty broken, isn't it?

Would be better to just do:

config CRYPTO_AES
        select CRYPTO_AES_586 if (X86 && !X86_64)
        select CRYPTO_AES_OTHER if !(X86 && !X86_64)

and hide CRYPTO_AES_586 and CRYPTO_AES_OTHER from the outside world.

Not really that easy.  For x86 we have

        aes
        aes-586
        aes-via

And my own personal custom-kernel preference is to use the C version of the code on my x86 and x86-64 boxes.

        Jeff



<Prev in Thread] Current Thread [Next in Thread>