]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit4133da73067af0417c623eb4ad5e85081ccbf4b4
tree86ca2fa1fd06c84662778f34b8de6d01e3c9ede4
parent8c03145a2e2d98d44dba4bf16ab34636eb60b834
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