summaryrefslogtreecommitdiff
path: root/tools/crypto/ccp/dbc.c
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2023-08-29 18:07:58 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-09-15 13:29:45 +0300
commit2ad01eb5fad24627ab4e196dc54a220753b2238b (patch)
treebd4974b8a9afc4fe2953b50c5b90b00a70f10546 /tools/crypto/ccp/dbc.c
parent70f242c1933e9e881c13c31640bb6d56e8b7e738 (diff)
downloadlinux-2ad01eb5fad24627ab4e196dc54a220753b2238b.tar.xz
crypto: ccp - Fix sample application signature passing
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>
Diffstat (limited to 'tools/crypto/ccp/dbc.c')
-rw-r--r--tools/crypto/ccp/dbc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/crypto/ccp/dbc.c b/tools/crypto/ccp/dbc.c
index 7774e981849f..a807df0f0597 100644
--- a/tools/crypto/ccp/dbc.c
+++ b/tools/crypto/ccp/dbc.c
@@ -68,5 +68,6 @@ int process_param(int fd, int msg_index, __u8 *signature, int *data)
return errno;
*data = tmp.param;
+ memcpy(signature, tmp.signature, sizeof(tmp.signature));
return 0;
}