Introduce PSA_ALG_NONE
It is required by the standard definition of PSA_ALG_GET_HASH.
Documentation and definition from:
https://armmbed.github.io/mbed-crypto/html/api/ops/algorithms.html#c.PSA_ALG_NONE
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
diff --git a/include/psa/crypto_values.h b/include/psa/crypto_values.h
index 4f75b1f..3041825 100644
--- a/include/psa/crypto_values.h
+++ b/include/psa/crypto_values.h
@@ -713,6 +713,12 @@
1u << PSA_GET_KEY_TYPE_BLOCK_SIZE_EXPONENT(type) : \
0u)
+/** An invalid algorithm identifier value.
+ *
+ * Zero is not the encoding of any algorithm.
+ */
+#define PSA_ALG_NONE ((psa_algorithm_t)0)
+
/** Vendor-defined algorithm flag.
*
* Algorithms defined by this standard will never have the #PSA_ALG_VENDOR_FLAG