26 #ifndef MBEDTLS_PADLOCK_H
27 #define MBEDTLS_PADLOCK_H
29 #if !defined(MBEDTLS_CONFIG_FILE)
32 #include MBEDTLS_CONFIG_FILE
38 #define MBEDTLS_ERR_PADLOCK_DATA_MISALIGNED -0x0030
40 #if defined(__has_feature)
41 #if __has_feature(address_sanitizer)
42 #define MBEDTLS_HAVE_ASAN
47 #if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && defined(__i386__) && \
48 !defined(MBEDTLS_HAVE_ASAN)
50 #ifndef MBEDTLS_HAVE_X86
51 #define MBEDTLS_HAVE_X86
56 #define MBEDTLS_PADLOCK_RNG 0x000C
57 #define MBEDTLS_PADLOCK_ACE 0x00C0
58 #define MBEDTLS_PADLOCK_PHE 0x0C00
59 #define MBEDTLS_PADLOCK_PMM 0x3000
61 #define MBEDTLS_PADLOCK_ALIGN16(x) (uint32_t *) (16 + ((int32_t) (x) & ~15))
77 int mbedtls_padlock_has_support(
int feature );
92 int mbedtls_padlock_xcryptecb( mbedtls_aes_context *ctx,
94 const unsigned char input[16],
95 unsigned char output[16] );
112 int mbedtls_padlock_xcryptcbc( mbedtls_aes_context *ctx,
115 unsigned char iv[16],
116 const unsigned char *input,
117 unsigned char *output );
Configuration options (set of defines)
This file contains AES definitions and functions.