RetroArch
aesni.h
Go to the documentation of this file.
1 
23 #ifndef MBEDTLS_AESNI_H
24 #define MBEDTLS_AESNI_H
25 
26 #include "aes.h"
27 
28 #define MBEDTLS_AESNI_AES 0x02000000u
29 #define MBEDTLS_AESNI_CLMUL 0x00000002u
30 
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
35 #endif
36 
37 #if defined(MBEDTLS_HAVE_X86_64)
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
51 int mbedtls_aesni_has_support( unsigned int what );
52 
63 int mbedtls_aesni_crypt_ecb( mbedtls_aes_context *ctx,
64  int mode,
65  const unsigned char input[16],
66  unsigned char output[16] );
67 
78 void mbedtls_aesni_gcm_mult( unsigned char c[16],
79  const unsigned char a[16],
80  const unsigned char b[16] );
81 
89 void mbedtls_aesni_inverse_key( unsigned char *invkey,
90  const unsigned char *fwdkey, int nr );
91 
101 int mbedtls_aesni_setkey_enc( unsigned char *rk,
102  const unsigned char *key,
103  size_t bits );
104 
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 #endif /* MBEDTLS_HAVE_X86_64 */
110 
111 #endif /* MBEDTLS_AESNI_H */
GLenum mode
Definition: glext.h:6857
AES block cipher.
GLenum GLenum GLenum input
Definition: glext.h:9938
const GLubyte * c
Definition: glext.h:9812
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:11836
std::string output
Definition: Config.FromFile.cpp:44
AES context structure.
Definition: aes.h:62
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844