22#ifndef PSA_CRYPTO_PSA_MAC_ALGORITHM_H
23#define PSA_CRYPTO_PSA_MAC_ALGORITHM_H
35#define PSA_ALG_CATEGORY_MAC ((psa_algorithm_t)0x03000000)
40#define PSA_ALG_HMAC_BASE (0x03800000)
50#define PSA_ALG_IS_MAC(alg) (((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_MAC)
62#define PSA_ALG_IS_HMAC(alg) (((alg) & 0x7fc0ff00) == 0x03800000)
72#define PSA_ALG_IS_BLOCK_CIPHER_MAC(alg) (((alg) & 0x7fc00000) == 0x03c00000)
91#define PSA_ALG_HMAC(hash_alg) \
92 ((psa_algorithm_t)(PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK)))
91#define PSA_ALG_HMAC(hash_alg) \ …
115#define PSA_ALG_CBC_MAC ((psa_algorithm_t)0x03c00100)
134#define PSA_ALG_CMAC ((psa_algorithm_t)0x03c00200)
169#define PSA_ALG_TRUNCATED_MAC(mac_alg, mac_length) \
170 ((psa_algorithm_t)(((mac_alg) & ~0x003f0000) | (((mac_length) & 0x3f) << 16)))
169#define PSA_ALG_TRUNCATED_MAC(mac_alg, mac_length) \ …
187#define PSA_ALG_FULL_LENGTH_MAC(mac_alg) \
188 ((psa_algorithm_t)((mac_alg) & ~0x003f0000))
187#define PSA_ALG_FULL_LENGTH_MAC(mac_alg) \ …
218#define PSA_ALG_AT_LEAST_THIS_LENGTH_MAC(mac_alg, min_mac_length) \
218#define PSA_ALG_AT_LEAST_THIS_LENGTH_MAC(mac_alg, min_mac_length) \ …
Algorithm definitions for the PSA Crypto API.
Hash algorithm definitions for the PSA Crypto API.