net/tls: Use aead_request_alloc/free for request alloc/free
authorVakul Garg <vakul.garg@nxp.com>
Wed, 11 Jul 2018 09:02:20 +0000 (14:32 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 21:44:11 +0000 (14:44 -0700)
commitd2bdd2681278d66fd34cd8e0cf724de918f429b2
tree27195eda78c768a6f96e6583bbb313b220659abd
parentcba54f9cf4ec1126dde5576e025691c27f669d85
net/tls: Use aead_request_alloc/free for request alloc/free

Instead of kzalloc/free for aead_request allocation and free, use
functions aead_request_alloc(), aead_request_free(). It ensures that
any sensitive crypto material held in crypto transforms is securely
erased from memory.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Acked-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c