30 #ifndef MBEDTLS_PADLOCK_H
31 #define MBEDTLS_PADLOCK_H
33 #if !defined(MBEDTLS_CONFIG_FILE)
36 #include MBEDTLS_CONFIG_FILE
41 #define MBEDTLS_ERR_PADLOCK_DATA_MISALIGNED -0x0030
43 #if defined(__has_feature)
44 #if __has_feature(address_sanitizer)
45 #define MBEDTLS_HAVE_ASAN
50 #if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && defined(__i386__) && \
51 !defined(MBEDTLS_HAVE_ASAN)
53 #ifndef MBEDTLS_HAVE_X86
54 #define MBEDTLS_HAVE_X86
59 #define MBEDTLS_PADLOCK_RNG 0x000C
60 #define MBEDTLS_PADLOCK_ACE 0x00C0
61 #define MBEDTLS_PADLOCK_PHE 0x0C00
62 #define MBEDTLS_PADLOCK_PMM 0x3000
64 #define MBEDTLS_PADLOCK_ALIGN16(x) (uint32_t *) (16 + ((int32_t) x & ~15))
80 int mbedtls_padlock_has_support(
int feature );
97 const unsigned char input[16],
98 unsigned char output[16] );
118 unsigned char iv[16],
119 const unsigned char *input,
120 unsigned char *output );