25 #ifndef MBEDTLS_AESNI_H
26 #define MBEDTLS_AESNI_H
28 #if !defined(MBEDTLS_CONFIG_FILE)
31 #include MBEDTLS_CONFIG_FILE
36 #define MBEDTLS_AESNI_AES 0x02000000u
37 #define MBEDTLS_AESNI_CLMUL 0x00000002u
39 #if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \
40 ( defined(__amd64__) || defined(__x86_64__) ) && \
41 ! defined(MBEDTLS_HAVE_X86_64)
42 #define MBEDTLS_HAVE_X86_64
45 #if defined(MBEDTLS_HAVE_X86_64)
62 int mbedtls_aesni_has_support(
unsigned int what );
77 int mbedtls_aesni_crypt_ecb( mbedtls_aes_context *ctx,
79 const unsigned char input[16],
80 unsigned char output[16] );
95 void mbedtls_aesni_gcm_mult(
unsigned char c[16],
96 const unsigned char a[16],
97 const unsigned char b[16] );
110 void mbedtls_aesni_inverse_key(
unsigned char *invkey,
111 const unsigned char *fwdkey,
126 int mbedtls_aesni_setkey_enc(
unsigned char *rk,
127 const unsigned char *key,
Configuration options (set of defines)
This file contains AES definitions and functions.