Helper macros#

Macros#

#define
MBEDTLS_PSA_ALG_AEAD_EQUAL (aead_alg_1, aead_alg_2)

Check if two AEAD algorithm identifiers refer to the same AEAD algorithm regardless of the tag length they encode.

#define
MBEDTLS_PSA_ALG_AEAD_EQUAL (aead_alg_1, aead_alg_2)

Check if two AEAD algorithm identifiers refer to the same AEAD algorithm regardless of the tag length they encode.

Macro Definition Documentation#

MBEDTLS_PSA_ALG_AEAD_EQUAL#

#define MBEDTLS_PSA_ALG_AEAD_EQUAL
Value:
(!(((aead_alg_1) ^ (aead_alg_2)) & \
~(PSA_ALG_AEAD_TAG_LENGTH_MASK | PSA_ALG_AEAD_AT_LEAST_THIS_LENGTH_FLAG)))

Check if two AEAD algorithm identifiers refer to the same AEAD algorithm regardless of the tag length they encode.

Returns

  • 1 if both identifiers refer to the same AEAD algorithm, 0 otherwise. Unspecified if neither aead_alg_1 nor aead_alg_2 are a supported AEAD algorithm.


Definition at line 2722 of file util/third_party/mbedtls/include/psa/crypto_values.h

MBEDTLS_PSA_ALG_AEAD_EQUAL#

#define MBEDTLS_PSA_ALG_AEAD_EQUAL
Value:
(!(((aead_alg_1) ^ (aead_alg_2)) & \
~(PSA_ALG_AEAD_TAG_LENGTH_MASK | PSA_ALG_AEAD_AT_LEAST_THIS_LENGTH_FLAG)))

Check if two AEAD algorithm identifiers refer to the same AEAD algorithm regardless of the tag length they encode.

Returns

  • 1 if both identifiers refer to the same AEAD algorithm, 0 otherwise. Unspecified if neither aead_alg_1 nor aead_alg_2 are a supported AEAD algorithm.


Definition at line 2651 of file util/third_party/trusted-firmware-m/interface/include/psa/crypto_values.h