Search Linux Wireless

Re: mac80211 hardware encryption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I'm not sure if I understand completely what you mean but rt61pci/rt73usb hardware does the following:
> 
> 1) Receive frame
> 2) Determine key from register
> 3) Put IV/EIV into descriptor
> 4) Decrypt
> 5) Notifies driver about the frame +  decryption status

Ok, so you get those out-of-band.

> Well as an alternative to adding it to tx_control, perhaps a callback function for drivers
> could be provided? At the moment mac80211 calls:
> 
> ieee80211_tkip_add_iv(pos, key,
>                       (u8) (key->u.tkip.iv16 >> 8),
>                       (u8) (((key->u.tkip.iv16 >> 8) | 0x20) &
>                             0x7f),
>                       (u8) key->u.tkip.iv16);
> 
> to insert the IV into the skb, if the driver could get a calback function that calls the above
> function and writes the result into a char* buffer you get the same effect except that the
> driver can put the iv wherever it wants.
> That way rt2x00 doesn't have to set the IEEE80211_KEY_FLAG_GENERATE_IV flag, and
> can request the IV manually from mac80211.

No, you can't do that because the IV is already incremented at that
point, so you wouldn't be able to perfectly match things up because
ops->tx() need not be serialised with this due to deferring to the
master interface.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux