crypto: qat - set to zero DH parameters before free

Set to zero the context buffers containing the DH key before they are
This is a defense in depth measure that avoids keys to be recovered from
memory in case the system is compromised between the free of the buffer
and when that area of memory (containing keys) gets overwritten.

Fixes: c9839143ebbf ("crypto: qat - Add DH support")
Signed-off-by: Giovanni Cabiddu <>
Reviewed-by: Adam Guerin <>
Reviewed-by: Wojciech Ziemba <>
Signed-off-by: Herbert Xu <>
1 file changed