Skip to contentSkip to conversation

michael_mic in crypto api?

DISCUSSION Michael Wu 4 participants 7 messages Jul 14, 2006 – Jul 19, 2006

Subsystems (2)
lore
Share & tools
lore

Michael Wu

author
#0 lore raw

Is there really a point to having michael_mic in crypto api? The only users are 802.11 stacks. I can imagine arc4 being used for other purposes, but michael_mic is very much wireless only. The only advantage of keeping michael_mic in crypto seems to be the testing code.

-Michael Wu

#1 lore raw
Quoted 6 lines · Michael Wu

Is there really a point to having michael_mic in crypto api? The only users are 802.11 stacks. I can imagine arc4 being used for other purposes, but michael_mic is very much wireless only. The only advantage of keeping michael_mic in crypto seems to be the testing code.

-Michael Wu

Err, sent from the wrong address. Opps. Too many email addresses..

-Michael Wu

#2 lore raw
In reply to Michael Wu
Quoted 5 lines · Michael Wu

Is there really a point to having michael_mic in crypto api? The only users are 802.11 stacks. I can imagine arc4 being used for other purposes, but michael_mic is very much wireless only. The only advantage of keeping michael_mic in crypto seems to be the testing code.

I suppose the question is that what do you gain by moving it out? If all else being equal then it's better to have a standardised interface for accessing it.

Cheers,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#3 lore raw
Quoted 4 lines · Herbert Xu

I suppose the question is that what do you gain by moving it out? If all else being equal then it's better to have a standardised interface for accessing it.

Simplicity and consistency. Whereas the relatively simple mic part of the TKIP algorithm is in crypto API, the (more important, more complicated) key mixing part is not in crypto api. It is unlikely that either the mic or key mixing part would be used separately or even outside of TKIP/802.11i code, and we don't want to encourage people anyways since they're just bandaids for problems associated with using rc4.

-Michael Wu

#4 lore raw
Quoted 7 lines · Michael Wu

Simplicity and consistency. Whereas the relatively simple mic part of the TKIP algorithm is in crypto API, the (more important, more complicated) key mixing part is not in crypto api. It is unlikely that either the mic or key mixing part would be used separately or even outside of TKIP/802.11i code, and we don't want to encourage people anyways since they're just bandaids for problems associated with using rc4.

Sure, I don't mind either way. I think Jouni wrote this originally, maybe he can share his thoughts with us?

Cheers,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#5 lore raw
Quoted 7 lines · Herbert Xu
Quoted 3 lines · Michael Wu

Simplicity and consistency. Whereas the relatively simple mic part of the TKIP algorithm is in crypto API, the (more important, more complicated) key mixing part is not in crypto api.

Sure, I don't mind either way. I think Jouni wrote this originally, maybe he can share his thoughts with us?

I was more or less told that TKIP implementation cannot be included in the kernel tree before this was moved into crypto api.. I don't really care much where it is, but since it is now in crypto api, it would sound easiest to just keep it there. If someone really wants to move it away from there and into TKIP code in ieee80211/d80211, feel free to do that. However, at least for some time, there are two different TKIP implementations (net/ieee80211 and net/d80211) so this would mean duplicating Michael MIC implementation and I would rather not do that.

Signature · 1 line
Jouni Malinen                                            PGP id EFC895FA
#6 lore raw
Quoted 4 lines · Jouni Malinen

However, at least for some time, there are two different TKIP implementations (net/ieee80211 and net/d80211) so this would mean duplicating Michael MIC implementation and I would rather not do that.

Good point, let's keep it for now.

Cheers,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt