diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-05-16 17:46:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-16 23:23:40 +0200 |
commit | 5d637d5aabd85132bd85779677d8acb708e0ed90 (patch) | |
tree | e6b2200fcd78d587e608251590465a6296db5622 /net/mac802154/mac802154.h | |
parent | mac802154: update Kconfig (diff) | |
download | linux-5d637d5aabd85132bd85779677d8acb708e0ed90.tar.xz linux-5d637d5aabd85132bd85779677d8acb708e0ed90.zip |
mac802154: add llsec structures and mutators
This patch adds containers and mutators for the major ieee802154_llsec
structures to mac802154. Most of the (rather simple) ieee802154_llsec
structs are wrapped only to provide an rcu_head for orderly disposal,
but some structs - llsec keys notably - require more complex
bookkeeping.
Since each llsec key may be referenced by a number of llsec key table
entries (with differing key ids, but the same actual key), we want to
save memory and not allocate crypto transforms for each entry in the
table. Thus, the mac802154 llsec key is reference-counted instead.
Further, each key will have four associated crypto transforms - three
CCM transforms for the authsizes 4/8/16 and one CTR transform for
unauthenticated encryption. If we had a CCM* transform that allowed
authsize 0, and authsize as part of requests instead of transforms, this
would not be necessary.
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154/mac802154.h')
-rw-r--r-- | net/mac802154/mac802154.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac802154/mac802154.h b/net/mac802154/mac802154.h index 28ef59c566e6..e05f66e2eda3 100644 --- a/net/mac802154/mac802154.h +++ b/net/mac802154/mac802154.h @@ -23,6 +23,7 @@ #ifndef MAC802154_H #define MAC802154_H +#include <net/mac802154.h> #include <net/ieee802154_netdev.h> /* mac802154 device private data */ |