On Wednesday, October 19, 2016 9:39:49 AM CEST Ben Greear wrote: > On 10/19/2016 09:37 AM, greearb@xxxxxxxxxxxxxxx wrote: > > From: Yauhen Kharuzhy <jekhor@xxxxxxxxx> > > > > Add ccm(aes) implementation from linux-wireless mailing list (see > > http://permalink.gmane.org/gmane.linux.kernel.wireless.general/126679). > > > > This eliminates FPU context store/restore overhead existing in more > > general ccm_base(ctr(aes-aesni),aes-aesni) case in MAC calculation. > > > > Convert this patch to new AEAD API. > > > > Signed-off-by: Yauhen Kharuzhy <jekhor@xxxxxxxxx> > > Signed-off-by: Ben Greear <greearb@xxxxxxxxxxxxxxx> > > I've been using this patch or something similar for a while and it > significantly helps me with sw-crypt performance. One version or another > has been around the internet for some time, and I am not the originator > of this code, but would still be happy to see it upstream if someone > can review and bless it. No. I don't think this will ever fly by the crypto folks in this form due to the CRYPTO_ALGO_ASYNC fallback parts which are necessary to get it to work with mac80211. It would be a great if mac80211 would do to the encryption and decryption asynchronously. As this would work for other ciphers and also allows crypto offload to dedicated crypto hardware. Regards, Christian