33 #ifndef PSA_CRYPTO_BUILTIN_PRIMITIVES_H
34 #define PSA_CRYPTO_BUILTIN_PRIMITIVES_H
49 #if defined(MBEDTLS_PSA_BUILTIN_ALG_MD5) || \
50 defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160) || \
51 defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1) || \
52 defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224) || \
53 defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256) || \
54 defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384) || \
55 defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512)
56 #define MBEDTLS_PSA_BUILTIN_HASH
65 #if defined(MBEDTLS_PSA_BUILTIN_ALG_MD5)
66 mbedtls_md5_context
md5;
68 #if defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160)
71 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1)
74 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256) || \
75 defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224)
78 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512) || \
79 defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384)
85 #define MBEDTLS_PSA_HASH_OPERATION_INIT {0, {0}}
93 #if defined(MBEDTLS_PSA_BUILTIN_ALG_STREAM_CIPHER) || \
94 defined(MBEDTLS_PSA_BUILTIN_ALG_CTR) || \
95 defined(MBEDTLS_PSA_BUILTIN_ALG_CFB) || \
96 defined(MBEDTLS_PSA_BUILTIN_ALG_OFB) || \
97 defined(MBEDTLS_PSA_BUILTIN_ALG_XTS) || \
98 defined(MBEDTLS_PSA_BUILTIN_ALG_ECB_NO_PADDING) || \
99 defined(MBEDTLS_PSA_BUILTIN_ALG_CBC_NO_PADDING) || \
100 defined(MBEDTLS_PSA_BUILTIN_ALG_CBC_PKCS7)
101 #define MBEDTLS_PSA_BUILTIN_CIPHER 1
115 #define MBEDTLS_PSA_CIPHER_OPERATION_INIT {0, 0, 0, {0}}
#define MBEDTLS_PRIVATE(member)
RIPE MD-160 message digest.
mbedtls_sha512_context sha512
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
Macro wrapper for struct's memebrs.
This file contains an abstraction interface for use with the cipher primitives provided by the librar...
mbedtls_ripemd160_context ripemd160
This file contains SHA-1 definitions and functions.
Definitions for all PSA crypto drivers.
This file contains SHA-384 and SHA-512 definitions and functions.
MD5 message digest algorithm (hash function)
This file contains SHA-224 and SHA-256 definitions and functions.
mbedtls_sha256_context sha256
mbedtls_sha1_context sha1