Crypto: Conditional reference PSA types by PSA FF version

Cypto references type 'psa_status_t'. This type is defined in PSA FF
1.0-beta0. Add PSA FF version checking to decide proper way of reference
it.

Change-Id: I61f9324031e8e28c2bac2ef5bb9148b702183f8c
Signed-off-by: Edison Ai <edison.ai@arm.com>
diff --git a/interface/include/psa_crypto.h b/interface/include/psa_crypto.h
index f122841..e3ae717 100644
--- a/interface/include/psa_crypto.h
+++ b/interface/include/psa_crypto.h
@@ -61,12 +61,15 @@
  * together with PSA IPC, which also defines the identifier
  * PSA_SUCCESS. We must not define PSA_SUCCESS ourselves in that case;
  * the other error code names don't clash. Also define psa_status_t as
- * an alias for the type used by PSA IPC. This is a temporary hack
- * until we unify error reporting in PSA IPC and PSA crypo.
+ * an alias for the type used by PSA IPC if the PSA_FRAMEWORK_VERSION is
+ * less than 0x100. This is a temporary hack until we unify error reporting
+ * in PSA IPC and PSA crypo.
  *
  * Note that psa_defs.h must be included before this header!
  */
+#if (PSA_FRAMEWORK_VERSION < 0x100)
 typedef psa_error_t psa_status_t;
+#endif
 
 #else /* defined(PSA_SUCCESS) */