mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-26 16:55:27 +00:00
psa: config: Add CBC-MAC
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
e1f5516025
commit
d85e98d6f1
|
@ -303,6 +303,13 @@ extern "C" {
|
||||||
#define MBEDTLS_PSA_BUILTIN_ALG_STREAM_CIPHER 1
|
#define MBEDTLS_PSA_BUILTIN_ALG_STREAM_CIPHER 1
|
||||||
#endif /* PSA_WANT_ALG_STREAM_CIPHER */
|
#endif /* PSA_WANT_ALG_STREAM_CIPHER */
|
||||||
|
|
||||||
|
#if defined(PSA_WANT_ALG_CBC_MAC)
|
||||||
|
#if !defined(MBEDTLS_PSA_ACCEL_ALG_CBC_MAC)
|
||||||
|
#error "CBC-MAC is not yet supported via the PSA API in Mbed TLS."
|
||||||
|
#define MBEDTLS_PSA_BUILTIN_ALG_CBC_MAC 1
|
||||||
|
#endif /* !MBEDTLS_PSA_ACCEL_ALG_CBC_MAC */
|
||||||
|
#endif /* PSA_WANT_ALG_CBC_MAC */
|
||||||
|
|
||||||
#if defined(PSA_WANT_ALG_CMAC)
|
#if defined(PSA_WANT_ALG_CMAC)
|
||||||
#if !defined(MBEDTLS_PSA_ACCEL_ALG_CMAC) || \
|
#if !defined(MBEDTLS_PSA_ACCEL_ALG_CMAC) || \
|
||||||
defined(PSA_HAVE_SOFT_BLOCK_CIPHER)
|
defined(PSA_HAVE_SOFT_BLOCK_CIPHER)
|
||||||
|
|
|
@ -50,6 +50,10 @@
|
||||||
#ifndef PSA_CRYPTO_CONFIG_H
|
#ifndef PSA_CRYPTO_CONFIG_H
|
||||||
#define PSA_CRYPTO_CONFIG_H
|
#define PSA_CRYPTO_CONFIG_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* CBC-MAC is not yet supported via the PSA API in Mbed TLS.
|
||||||
|
*/
|
||||||
|
//#define PSA_WANT_ALG_CBC_MAC 1
|
||||||
#define PSA_WANT_ALG_CBC_NO_PADDING 1
|
#define PSA_WANT_ALG_CBC_NO_PADDING 1
|
||||||
#define PSA_WANT_ALG_CBC_PKCS7 1
|
#define PSA_WANT_ALG_CBC_PKCS7 1
|
||||||
#define PSA_WANT_ALG_CCM 1
|
#define PSA_WANT_ALG_CCM 1
|
||||||
|
|
Loading…
Reference in a new issue