RetroArch
ripemd160.h
Go to the documentation of this file.
1 
23 #ifndef MBEDTLS_RIPEMD160_H
24 #define MBEDTLS_RIPEMD160_H
25 
26 #if !defined(MBEDTLS_CONFIG_FILE)
27 #include "config.h"
28 #else
29 #include MBEDTLS_CONFIG_FILE
30 #endif
31 
32 #include <stddef.h>
33 #include <stdint.h>
34 
35 #if !defined(MBEDTLS_RIPEMD160_ALT)
36 // Regular implementation
37 //
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
46 typedef struct
47 {
48  uint32_t total[2];
50  unsigned char buffer[64];
51 }
53 
60 
67 
76 
83 
92  const unsigned char *input, size_t ilen );
93 
101 
102 /* Internal use */
103 void mbedtls_ripemd160_process( mbedtls_ripemd160_context *ctx, const unsigned char data[64] );
104 
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 #else /* MBEDTLS_RIPEMD160_ALT */
110 #include "ripemd160.h"
111 #endif /* MBEDTLS_RIPEMD160_ALT */
112 
113 #ifdef __cplusplus
114 extern "C" {
115 #endif
116 
124 void mbedtls_ripemd160( const unsigned char *input, size_t ilen,
125  unsigned char output[20] );
126 
132 int mbedtls_ripemd160_self_test( int verbose );
133 
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #endif /* mbedtls_ripemd160.h */
RIPEMD-160 context structure.
Definition: ripemd160.h:46
void mbedtls_ripemd160_free(mbedtls_ripemd160_context *ctx)
Clear RIPEMD-160 context.
Definition: ripemd160.c:79
Configuration options (set of defines)
void mbedtls_ripemd160_clone(mbedtls_ripemd160_context *dst, const mbedtls_ripemd160_context *src)
Clone (the state of) an RIPEMD-160 context.
Definition: ripemd160.c:87
void mbedtls_ripemd160_init(mbedtls_ripemd160_context *ctx)
Initialize RIPEMD-160 context.
Definition: ripemd160.c:74
void mbedtls_ripemd160_update(mbedtls_ripemd160_context *ctx, const unsigned char *input, size_t ilen)
RIPEMD-160 process buffer.
Definition: ripemd160.c:303
Definition: ibxm.h:9
GLenum GLenum GLenum input
Definition: glext.h:9938
void mbedtls_ripemd160(const unsigned char *input, size_t ilen, unsigned char output[20])
Output = RIPEMD-160( input buffer )
Definition: ripemd160.c:383
void mbedtls_ripemd160_starts(mbedtls_ripemd160_context *ctx)
RIPEMD-160 context setup.
Definition: ripemd160.c:96
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
int mbedtls_ripemd160_self_test(int verbose)
Checkup routine.
Definition: ripemd160.c:438
GLenum src
Definition: glext.h:6980
std::string output
Definition: Config.FromFile.cpp:44
GLenum GLenum dst
Definition: glext.h:6980
RIPE MD-160 message digest.
Definition: video4linux2.c:51
unsigned int uint32_t
Definition: stdint.h:126
void mbedtls_ripemd160_finish(mbedtls_ripemd160_context *ctx, unsigned char output[20])
RIPEMD-160 final digest.
Definition: ripemd160.c:354
void mbedtls_ripemd160_process(mbedtls_ripemd160_context *ctx, const unsigned char data[64])
Definition: ripemd160.c:112