23 #ifndef MBEDTLS_AESNI_H
24 #define MBEDTLS_AESNI_H
28 #define MBEDTLS_AESNI_AES 0x02000000u
29 #define MBEDTLS_AESNI_CLMUL 0x00000002u
31 #if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \
32 ( defined(__amd64__) || defined(__x86_64__) ) && \
33 ! defined(MBEDTLS_HAVE_X86_64)
34 #define MBEDTLS_HAVE_X86_64
37 #if defined(MBEDTLS_HAVE_X86_64)
51 int mbedtls_aesni_has_support(
unsigned int what );
65 const unsigned char input[16],
66 unsigned char output[16] );
78 void mbedtls_aesni_gcm_mult(
unsigned char c[16],
79 const unsigned char a[16],
80 const unsigned char b[16] );
89 void mbedtls_aesni_inverse_key(
unsigned char *invkey,
90 const unsigned char *fwdkey,
int nr );
101 int mbedtls_aesni_setkey_enc(
unsigned char *rk,
102 const unsigned char *key,