Use libpsa in ts-demo

Modify the demo application to use the prebuilt PSA clients from
libpsa instead of directly building these.

Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
Change-Id: Ib714c7ad901039c56ec6b021ff052b0329c79605
diff --git a/deployments/ts-demo/ts-demo.c b/deployments/ts-demo/ts-demo.c
new file mode 100644
index 0000000..c7ef52b
--- /dev/null
+++ b/deployments/ts-demo/ts-demo.c
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2020-2023, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <app/ts-demo/ts-demo.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "libpsa.h"
+
+int main(int argc, char *argv[])
+{
+	psa_status_t psa_status = PSA_ERROR_GENERIC_ERROR;
+	const char *service_name = "sn:trustedfirmware.org:crypto:0";
+
+	if (argc > 1)
+		service_name = argv[1];
+
+	psa_status = libpsa_init_crypto_context(service_name);
+
+	if (psa_status) {
+		printf("libpsa_init_crypto_context failed: %d\n", psa_status);
+		return psa_status;
+	}
+
+	psa_status = run_ts_demo(true);
+
+	libpsa_deinit_its_context();
+
+	if (psa_status)
+		printf("\n*** ts-demo failed ***\n\n");
+	else
+		printf("\n*** ts-demo was successful ***\n\n");
+
+	return psa_status;
+}