Crypto: Align to PSA Crypto headers 0.1.0a
This patch updates the PSA Crypto API headers to version
0.1.0a. The Crypto service implementation is updated when
needed to make sure the service is buildable and functional.
Change-Id: I63709db0d87f449012d0c8355658f1af1583b3ab
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
index 118897b..6d35c68 100644
--- a/interface/include/psa_crypto_platform.h
+++ b/interface/include/psa_crypto_platform.h
@@ -1,31 +1,32 @@
/*
- * Copyright (c) 2018, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2019, 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
*
+ * \note This file may not be included directly. Applications must
+ * include psa/crypto.h.
+ *
+ * This file contains platform-dependent type definitions.
+ *
+ * In implementations with isolation between the application and the
+ * cryptography module, implementers should take care to ensure that
+ * the definitions that are exposed to applications match what the
+ * module implements.
*/
+#ifndef PSA_CRYPTO_PLATFORM_H
+#define PSA_CRYPTO_PLATFORM_H
+
/* 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__ */
+#endif /* PSA_CRYPTO_PLATFORM_H */