crypto: ccp - Limit the amount of information exported
authorTom Lendacky <thomas.lendacky@amd.com>
Fri, 29 Jan 2016 18:45:14 +0000 (12:45 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:45 +0000 (09:08 -0700)
commit8c5156ad2da4493e6402bf7335d044445dca8c00
tree88a5d68a7c843676ac4c050234f129139a10daa0
parent120e2febfc11ea91e34bec1c92fe5d6475c89508
crypto: ccp - Limit the amount of information exported

commit d1662165ae612ec8b5f94a6b07e65ea58b6dce34 upstream.

Since the exported information can be exposed to user-space, instead of
exporting the entire request context only export the minimum information
needed.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/ccp/ccp-crypto-aes-cmac.c
drivers/crypto/ccp/ccp-crypto-sha.c
drivers/crypto/ccp/ccp-crypto.h