2021-07-06 14:07:18 +00:00
|
|
|
#ifndef MBEDTLS_AESNI_H_
|
|
|
|
#define MBEDTLS_AESNI_H_
|
2021-06-16 03:18:59 +00:00
|
|
|
#include "third_party/mbedtls/aes.h"
|
2021-06-24 19:31:26 +00:00
|
|
|
#include "third_party/mbedtls/config.h"
|
2021-07-06 14:07:18 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
2021-06-24 19:31:26 +00:00
|
|
|
/* clang-format off */
|
2021-06-15 18:39:36 +00:00
|
|
|
|
|
|
|
#define MBEDTLS_AESNI_AES 0x02000000u
|
|
|
|
#define MBEDTLS_AESNI_CLMUL 0x00000002u
|
|
|
|
|
2021-07-06 14:07:18 +00:00
|
|
|
int mbedtls_aesni_crypt_ecb( mbedtls_aes_context *, int, const unsigned char[16], unsigned char[16] );
|
|
|
|
void mbedtls_aesni_gcm_mult( unsigned char[16], const uint64_t[2] );
|
|
|
|
void mbedtls_aesni_inverse_key( unsigned char *, const unsigned char *, int );
|
|
|
|
int mbedtls_aesni_setkey_enc( unsigned char *, const unsigned char *, size_t );
|
2021-06-15 18:39:36 +00:00
|
|
|
|
2021-07-06 14:07:18 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* MBEDTLS_AESNI_H_ */
|