Introduce PSA_ALG_STREAM_CIPHER
This algorithm replaces the pre-existing stream cipher algorithms.
The underlying stream cipher is determined by the key type.
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
diff --git a/include/psa/crypto_compat.h b/include/psa/crypto_compat.h
index 86aa271..7228b2a 100644
--- a/include/psa/crypto_compat.h
+++ b/include/psa/crypto_compat.h
@@ -242,6 +242,14 @@
#endif /* MBEDTLS_DEPRECATED_REMOVED */
+/*
+ * Deprecated PSA Crypto stream cipher algorithms (PSA Crypto API <= 1.0 beta3)
+ */
+#define PSA_ALG_ARC4 \
+ PSA_ALG_STREAM_CIPHER
+#define PSA_ALG_CHACHA20 \
+ PSA_ALG_STREAM_CIPHER
+
/** Open a handle to an existing persistent key.
*
* Open a handle to a persistent key. A key is persistent if it was created