Add pkcs7 verification stub to all callers

The crypto_caller_verify_pkcs7_signature() function was only implemented
in the packed-c crypto caller. This causes an error in the SE Proxy SP,
since it contains crypto/client/psa but uses either the psa_ipc or the
stub crypto caller which do not contain this function. Add a dummy
implementation to all callers to fix this issue.

Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: If3b550cae0cc1d7a62250dcf076d7dcc4f4b7886
diff --git a/components/service/crypto/client/caller/psa_ipc/crypto_caller.h b/components/service/crypto/client/caller/psa_ipc/crypto_caller.h
index 99a5ed3..68d489f 100644
--- a/components/service/crypto/client/caller/psa_ipc/crypto_caller.h
+++ b/components/service/crypto/client/caller/psa_ipc/crypto_caller.h
@@ -30,5 +30,6 @@
 #include "crypto_caller_purge_key.h"
 #include "crypto_caller_sign_hash.h"
 #include "crypto_caller_verify_hash.h"
+#include "crypto_caller_verify_pkcs7_signature.h"
 
 #endif /* PSA_IPC_CRYPTO_CALLER_H */
diff --git a/components/service/crypto/client/caller/psa_ipc/crypto_caller_verify_pkcs7_signature.h b/components/service/crypto/client/caller/psa_ipc/crypto_caller_verify_pkcs7_signature.h
new file mode 100644
index 0000000..8b275fe
--- /dev/null
+++ b/components/service/crypto/client/caller/psa_ipc/crypto_caller_verify_pkcs7_signature.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef PSA_IPC_CRYPTO_CALLER_VERIFY_PKCS7_SIGNATURE_H
+#define PSA_IPC_CRYPTO_CALLER_VERIFY_PKCS7_SIGNATURE_H
+
+#include <rpc/common/interface/rpc_status.h>
+#include <service/common/client/service_client.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+static inline int crypto_caller_verify_pkcs7_signature(struct service_client *context,
+						       const uint8_t *signature_cert,
+						       uint64_t signature_cert_len,
+						       const uint8_t *hash, uint64_t hash_len,
+						       const uint8_t *public_key_cert,
+						       uint64_t public_key_cert_len)
+{
+	(void)context;
+	(void)signature_cert;
+	(void)signature_cert_len;
+	(void)hash;
+	(void)hash_len;
+	(void)public_key_cert;
+	(void)public_key_cert_len;
+
+	return RPC_ERROR_INTERNAL;
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PSA_IPC_CRYPTO_CALLER_VERIFY_PKCS7_SIGNATURE_H */
diff --git a/components/service/crypto/client/caller/stub/crypto_caller.h b/components/service/crypto/client/caller/stub/crypto_caller.h
index 857bd38..1931d02 100644
--- a/components/service/crypto/client/caller/stub/crypto_caller.h
+++ b/components/service/crypto/client/caller/stub/crypto_caller.h
@@ -31,5 +31,6 @@
 #include "crypto_caller_export_public_key.h"
 #include "crypto_caller_key_derivation.h"
 #include "crypto_caller_verify_hash.h"
+#include "crypto_caller_verify_pkcs7_signature.h"
 
 #endif /* STUB_CRYPTO_CALLER_H */
diff --git a/components/service/crypto/client/caller/stub/crypto_caller_verify_pkcs7_signature.h b/components/service/crypto/client/caller/stub/crypto_caller_verify_pkcs7_signature.h
new file mode 100644
index 0000000..ef32092
--- /dev/null
+++ b/components/service/crypto/client/caller/stub/crypto_caller_verify_pkcs7_signature.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef STUB_CRYPTO_CALLER_VERIFY_PKCS7_SIGNATURE_H
+#define STUB_CRYPTO_CALLER_VERIFY_PKCS7_SIGNATURE_H
+
+#include <rpc/common/interface/rpc_status.h>
+#include <service/common/client/service_client.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+static inline int crypto_caller_verify_pkcs7_signature(struct service_client *context,
+						       const uint8_t *signature_cert,
+						       uint64_t signature_cert_len,
+						       const uint8_t *hash, uint64_t hash_len,
+						       const uint8_t *public_key_cert,
+						       uint64_t public_key_cert_len)
+{
+	(void)context;
+	(void)signature_cert;
+	(void)signature_cert_len;
+	(void)hash;
+	(void)hash_len;
+	(void)public_key_cert;
+	(void)public_key_cert_len;
+
+	return RPC_ERROR_INTERNAL;
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* STUB_CRYPTO_CALLER_VERIFY_PKCS7_SIGNATURE_H */