Go to the documentation of this file.
24 #ifndef POLARSSL_AESNI_H
25 #define POLARSSL_AESNI_H
29 #define POLARSSL_AESNI_AES 0x02000000u
30 #define POLARSSL_AESNI_CLMUL 0x00000002u
32 #if defined(POLARSSL_HAVE_ASM) && defined(__GNUC__) && \
33 ( defined(__amd64__) || defined(__x86_64__) ) && \
34 ! defined(POLARSSL_HAVE_X86_64)
35 #define POLARSSL_HAVE_X86_64
38 #if defined(POLARSSL_HAVE_X86_64)
52 int aesni_supports(
unsigned int what );
66 const unsigned char input[16],
67 unsigned char output[16] );
79 void aesni_gcm_mult(
unsigned char c[16],
80 const unsigned char a[16],
81 const unsigned char b[16] );
90 void aesni_inverse_key(
unsigned char *invkey,
91 const unsigned char *fwdkey,
int nr );
102 int aesni_setkey_enc(
unsigned char *rk,
103 const unsigned char *key,