tls: Add support for encryption using async offload accelerator
authorVakul Garg <vakul.garg@nxp.com>
Wed, 31 Jan 2018 16:04:37 +0000 (21:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jan 2018 15:26:30 +0000 (10:26 -0500)
commita54667f6728c2714a400f3c884727da74b6d1717
tree5c722a9de6ef67c3ba7304516838b7e5ae1631d7
parent4adfa79fc254efb7b0eb3cd58f62c2c3f805f1ba
tls: Add support for encryption using async offload accelerator

Async crypto accelerators (e.g. drivers/crypto/caam) support offloading
GCM operation. If they are enabled, crypto_aead_encrypt() return error
code -EINPROGRESS. In this case tls_do_encryption() needs to wait on a
completion till the time the response for crypto offload request is
received.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_sw.c