mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 12:51:03 +00:00
Add feature support for ARC4 for PSA crypto config
Basic support for enabling ARC4 through PSA_WANT_KEY_TYPE_ARC4. Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
parent
949330827c
commit
ec258cfae1
|
@ -226,6 +226,12 @@ extern "C" {
|
||||||
#endif /* !MBEDTLS_PSA_ACCEL_KEY_TYPE_AES */
|
#endif /* !MBEDTLS_PSA_ACCEL_KEY_TYPE_AES */
|
||||||
#endif /* PSA_WANT_KEY_TYPE_AES */
|
#endif /* PSA_WANT_KEY_TYPE_AES */
|
||||||
|
|
||||||
|
#if defined(PSA_WANT_KEY_TYPE_ARC4)
|
||||||
|
#if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ARC4)
|
||||||
|
#define MBEDTLS_ARC4_C
|
||||||
|
#endif /*!MBEDTLS_PSA_ACCEL_KEY_TYPE_ARC4 */
|
||||||
|
#endif /* PSA_WANT_KEY_TYPE_ARC4 */
|
||||||
|
|
||||||
#else /* MBEDTLS_PSA_CRYPTO_CONFIG */
|
#else /* MBEDTLS_PSA_CRYPTO_CONFIG */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -338,6 +344,10 @@ extern "C" {
|
||||||
#define PSA_WANT_KEY_TYPE_AES 1
|
#define PSA_WANT_KEY_TYPE_AES 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_ARC4_C)
|
||||||
|
#define PSA_WANT_KEY_TYPE_ARC4 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
|
#endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in a new issue