Crypto: Add Crypto service
This change introduces the implementation of the Crypto
service based on the interface psa_crypto.h
This patch introduces changes for:
-- Secure Service, including manifest
-- Platform
-- Non-Secure interface
Change-Id: I3b68266ca80f4cd2bda2a1cd2b28b51c654b4c59
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
diff --git a/interface/include/psa_crypto_platform.h b/interface/include/psa_crypto_platform.h
new file mode 100644
index 0000000..118897b
--- /dev/null
+++ b/interface/include/psa_crypto_platform.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+/**
+ * \file psa_crypto_platform.h
+ *
+ * \brief PSA cryptography module: platform definitions
+ */
+
+#ifndef __PSA_CRYPTO_PLATFORM_H__
+#define __PSA_CRYPTO_PLATFORM_H__
+
+/**
+ * \note This file is meant to be included by psa_crypto.h only
+ *
+ */
+
+/* PSA requires several types which C99 provides in stdint.h. */
+#include <stdint.h>
+
+/* The following header is needed for platform specific constants */
+#include <limits.h>
+
+/* Integral type representing a key slot number. */
+typedef uint16_t psa_key_slot_t;
+
+#endif /* __PSA_CRYPTO_PLATFORM_H__ */