]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: aead api to reduce redundancy
authorXiang Gao <qasdfgtyuiop@gmail.com>
Wed, 11 Oct 2017 02:31:49 +0000 (22:31 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 11 Oct 2017 07:37:35 +0000 (09:37 +0200)
commit8c4b352f02c8c75e2c476440ac69b496e142a14b
tree86ca2fa1fd06c84662778f34b8de6d01e3c9ede4
parent3a57e4504ddf27f60bcf8fbfab35df761f4c02cd
mac80211: aead api to reduce redundancy

Currently, the aes_ccm.c and aes_gcm.c are almost line by line copy of
each other. This patch reduce code redundancy by moving the code in these
two files to crypto/aead_api.c to make it a higher level aead api. The
file aes_ccm.c and aes_gcm.c are removed and all the functions there are
now implemented in their headers using the newly added aead api.

Signed-off-by: Xiang Gao <qasdfgtyuiop@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/Makefile
net/mac80211/aead_api.c [new file with mode: 0644]
net/mac80211/aead_api.h [new file with mode: 0644]
net/mac80211/aes_ccm.c [deleted file]
net/mac80211/aes_ccm.h
net/mac80211/aes_gcm.c [deleted file]
net/mac80211/aes_gcm.h
net/mac80211/wpa.c