RetroArch
md_internal.h
Go to the documentation of this file.
1 
27 #ifndef MBEDTLS_MD_WRAP_H
28 #define MBEDTLS_MD_WRAP_H
29 
30 #if !defined(MBEDTLS_CONFIG_FILE)
31 #include "config.h"
32 #else
33 #include MBEDTLS_CONFIG_FILE
34 #endif
35 
36 #include "md.h"
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
47 {
50 
52  const char * name;
53 
55  int size;
56 
59 
61  void (*starts_func)( void *ctx );
62 
64  void (*update_func)( void *ctx, const unsigned char *input, size_t ilen );
65 
67  void (*finish_func)( void *ctx, unsigned char *output );
68 
70  void (*digest_func)( const unsigned char *input, size_t ilen,
71  unsigned char *output );
72 
74  void * (*ctx_alloc_func)( void );
75 
77  void (*ctx_free_func)( void *ctx );
78 
80  void (*clone_func)( void *dst, const void *src );
81 
83  void (*process_func)( void *ctx, const unsigned char *input );
84 };
85 
86 #if defined(MBEDTLS_MD2_C)
87 extern const mbedtls_md_info_t mbedtls_md2_info;
88 #endif
89 #if defined(MBEDTLS_MD4_C)
90 extern const mbedtls_md_info_t mbedtls_md4_info;
91 #endif
92 #if defined(MBEDTLS_MD5_C)
94 #endif
95 #if defined(MBEDTLS_RIPEMD160_C)
97 #endif
98 #if defined(MBEDTLS_SHA1_C)
100 #endif
101 #if defined(MBEDTLS_SHA256_C)
104 #endif
105 #if defined(MBEDTLS_SHA512_C)
108 #endif
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 
114 #endif /* MBEDTLS_MD_WRAP_H */
Configuration options (set of defines)
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
int block_size
Definition: md_internal.h:58
GLenum GLenum GLenum input
Definition: glext.h:9938
void(* digest_func)(const unsigned char *input, size_t ilen, unsigned char *output)
Definition: md_internal.h:70
mbedtls_md_type_t
Definition: md.h:39
void(* ctx_free_func)(void *ctx)
Definition: md_internal.h:77
void(* starts_func)(void *ctx)
Definition: md_internal.h:61
const mbedtls_md_info_t mbedtls_sha384_info
Definition: md_wrap.c:532
const mbedtls_md_info_t mbedtls_sha512_info
Definition: md_wrap.c:558
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
mbedtls_md_type_t type
Definition: md_internal.h:49
const char * name
Definition: md_internal.h:52
Generic message digest wrapper.
GLenum src
Definition: glext.h:6980
Definition: md_internal.h:46
int size
Definition: md_internal.h:55
std::string output
Definition: Config.FromFile.cpp:44
void(* process_func)(void *ctx, const unsigned char *input)
Definition: md_internal.h:83
void(* update_func)(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_internal.h:64
const mbedtls_md_info_t mbedtls_sha224_info
Definition: md_wrap.c:438
const mbedtls_md_info_t mbedtls_ripemd160_info
Definition: md_wrap.c:305
void(* finish_func)(void *ctx, unsigned char *output)
Definition: md_internal.h:67
GLenum GLenum dst
Definition: glext.h:6980
void(* clone_func)(void *dst, const void *src)
Definition: md_internal.h:80
const mbedtls_md_info_t mbedtls_md5_info
Definition: md_wrap.c:243
const mbedtls_md_info_t mbedtls_sha1_info
Definition: md_wrap.c:367
const mbedtls_md_info_t mbedtls_sha256_info
Definition: md_wrap.c:464