* Problem with crypto when initializing TKIP
@ 2012-04-16 5:29 Larry Finger
2012-04-16 12:48 ` Herbert Xu
0 siblings, 1 reply; 3+ messages in thread
From: Larry Finger @ 2012-04-16 5:29 UTC (permalink / raw)
To: LKML, Herbert Xu; +Cc: driverdevel, wireless, Jan Simonson
I am trying to fix the driver r8192e_pci from the staging tree. It works fine
with WEP and CCMP encryption, but it fails when trying to initialize TKIP. This
driver does not use mac80211, but incorporates its own softmac routines.
This problem is a regression between 3.2.0 and 3.3.0, but I was unable to get a
reasonable result using bisection.
Routine rtllib_tkip_init() from drivers/staging/rtl8192e/rtllib_crypt_tkip.c
does the same set of steps as is done in mac80211. Everything works with mac80211.
The block cipher allocation calls to crypto_alloc_blkcipher("ecb(arc4)",...) are
OK. The crypto_alloc_hash("michael_mic",...) call is the part that fails. The
problem shows up in the code fragment below from crypto/api.c:
ok = crypto_probing_notify(CRYPTO_MSG_ALG_REQUEST, larval);
if (ok == NOTIFY_STOP)
alg = crypto_larval_wait(larval);
else {
crypto_mod_put(larval);
alg = ERR_PTR(-ENOENT);
}
The value of ok is NOTIFY_OK, which leads to a return of -ENOENT and a failure
of the initialization.
I know this code is pretty old, and perhaps nobody remembers it, but I would
appreciate some pointers on debugging this issue.
Thanks,
Larry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with crypto when initializing TKIP
2012-04-16 5:29 Problem with crypto when initializing TKIP Larry Finger
@ 2012-04-16 12:48 ` Herbert Xu
2012-04-16 15:51 ` Larry Finger
0 siblings, 1 reply; 3+ messages in thread
From: Herbert Xu @ 2012-04-16 12:48 UTC (permalink / raw)
To: Larry Finger
Cc: LKML, driverdevel, wireless, Jan Simonson,
Linux Crypto Mailing List
On Mon, Apr 16, 2012 at 12:29:19AM -0500, Larry Finger wrote:
>
> The value of ok is NOTIFY_OK, which leads to a return of -ENOENT and
> a failure of the initialization.
NOTIFY_OK means that we have no notifiers installed. Did you
compile/load CRYPTO_MANAGER?
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with crypto when initializing TKIP
2012-04-16 12:48 ` Herbert Xu
@ 2012-04-16 15:51 ` Larry Finger
0 siblings, 0 replies; 3+ messages in thread
From: Larry Finger @ 2012-04-16 15:51 UTC (permalink / raw)
To: Herbert Xu
Cc: LKML, driverdevel, wireless, Jan Simonson,
Linux Crypto Mailing List
On 04/16/2012 07:48 AM, Herbert Xu wrote:
> On Mon, Apr 16, 2012 at 12:29:19AM -0500, Larry Finger wrote:
>>
>> The value of ok is NOTIFY_OK, which leads to a return of -ENOENT and
>> a failure of the initialization.
>
> NOTIFY_OK means that we have no notifiers installed. Did you
> compile/load CRYPTO_MANAGER?
Thanks for responding. The CRYPTO_MANAGER is built in, but your suggestion got
me into the correct area. For some unknown reason, CONFIG_MICHAEL_MIC was
dropped from my configuration. When I added it, everything works.
I will improve the error message in the driver.
Thanks again,
Larry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-16 15:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16 5:29 Problem with crypto when initializing TKIP Larry Finger
2012-04-16 12:48 ` Herbert Xu
2012-04-16 15:51 ` Larry Finger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).