crypto: ccp - Fix sample application signature passing
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 29 Aug 2023 15:07:58 +0000 (10:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:59:18 +0000 (11:59 +0100)
commite2866646d9c55b078210e9da425fb96fcd7b7716
treebe04e40b9ba58b13393dd3938714ae5b746dc6a5
parent3b1ea9069ae763d1d99279cc63d05a52222e285a
crypto: ccp - Fix sample application signature passing

[ Upstream commit 2ad01eb5fad24627ab4e196dc54a220753b2238b ]

When parameters are sent the PSP returns back it's own signature
for the application to verify the authenticity of the result.

Display this signature to the caller instead of the one the caller
sent.

Fixes: f40d42f116cf ("crypto: ccp - Add a sample python script for Dynamic Boost Control")
Fixes: febe3ed3222f ("crypto: ccp - Add a sample library for ioctl use")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/crypto/ccp/dbc.c
tools/crypto/ccp/dbc.py