aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/psp_verstage/svc.c
diff options
context:
space:
mode:
authorKangheui Won <khwon@chromium.org>2020-08-14 14:37:53 +1000
committerJulius Werner <jwerner@chromium.org>2020-08-28 21:56:08 +0000
commit07de90837363f2e4e58d08fe15ef41381f71815f (patch)
tree935b46f81532028b6c41aad1aca0f19c39c15fb4 /src/soc/amd/picasso/psp_verstage/svc.c
parent4c875c8a5dbe0440bf974a39142db800c2224180 (diff)
amd/picasso/psp_verstage: add vboot rsa function
Add vb2ex_hwcrypto_rsa_verify_digest function for verifying rsa signature against digest using PSP svc. This function will be later used by vboot to accelerate rsa verification. BUG=b:163710320, b:161205813 TEST=build zork firmware with vboot modification, confirm it's booting and boot time is reduced by ~230ms. Change-Id: Ic5c1d13092db5a84191642444f3df9c26925e475 Signed-off-by: Kangheui Won <khwon@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44456 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/picasso/psp_verstage/svc.c')
-rw-r--r--src/soc/amd/picasso/psp_verstage/svc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/amd/picasso/psp_verstage/svc.c b/src/soc/amd/picasso/psp_verstage/svc.c
index 149e3e2b2b..eff026160a 100644
--- a/src/soc/amd/picasso/psp_verstage/svc.c
+++ b/src/soc/amd/picasso/psp_verstage/svc.c
@@ -150,3 +150,10 @@ uint32_t svc_crypto_sha(SHA_GENERIC_DATA *sha_op, SHA_OPERATION_MODE sha_mode)
SVC_CALL2(SVC_SHA, sha_op, sha_mode, retval);
return retval;
}
+
+uint32_t svc_rsa_pkcs_verify(const RSAPKCS_VERIFY_PARAMS *rsa_params)
+{
+ uint32_t retval = 0;
+ SVC_CALL1(SVC_RSAPKCS_VERIFY, rsa_params, retval);
+ return retval;
+}