2021-07-06 07:07:18 -07:00
|
|
|
#ifndef MBEDTLS_AESNI_H_
|
|
|
|
#define MBEDTLS_AESNI_H_
|
2021-06-15 20:18:59 -07:00
|
|
|
#include "third_party/mbedtls/aes.h"
|
2021-06-24 12:31:26 -07:00
|
|
|
#include "third_party/mbedtls/config.h"
|
2021-07-06 07:07:18 -07:00
|
|
|
COSMOPOLITAN_C_START_
|
2021-06-15 11:39:36 -07:00
|
|
|
|
|
|
|
#define MBEDTLS_AESNI_AES 0x02000000u
|
|
|
|
#define MBEDTLS_AESNI_CLMUL 0x00000002u
|
|
|
|
|
2021-07-06 07:07:18 -07: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 11:39:36 -07:00
|
|
|
|
2021-07-06 07:07:18 -07:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* MBEDTLS_AESNI_H_ */
|