mbed TLS v2.2.0
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];
49  uint32_t state[5];
50  unsigned char buffer[64];
51 }
53 
60 
67 
75  const mbedtls_ripemd160_context *src );
76 
83 
92  const unsigned char *input, size_t ilen );
93 
100 void mbedtls_ripemd160_finish( mbedtls_ripemd160_context *ctx, unsigned char output[20] );
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 */
int mbedtls_ripemd160_self_test(int verbose)
Checkup routine.
void mbedtls_ripemd160_update(mbedtls_ripemd160_context *ctx, const unsigned char *input, size_t ilen)
RIPEMD-160 process buffer.
void mbedtls_ripemd160_starts(mbedtls_ripemd160_context *ctx)
RIPEMD-160 context setup.
void mbedtls_ripemd160_finish(mbedtls_ripemd160_context *ctx, unsigned char output[20])
RIPEMD-160 final digest.
Compatibility names (set of defines)
void mbedtls_ripemd160(const unsigned char *input, size_t ilen, unsigned char output[20])
Output = RIPEMD-160( input buffer )
RIPE MD-160 message digest.
void mbedtls_ripemd160_process(mbedtls_ripemd160_context *ctx, const unsigned char data[64])
void mbedtls_ripemd160_free(mbedtls_ripemd160_context *ctx)
Clear RIPEMD-160 context.
RIPEMD-160 context structure.
Definition: ripemd160.h:46
void mbedtls_ripemd160_clone(mbedtls_ripemd160_context *dst, const mbedtls_ripemd160_context *src)
Clone (the state of) an RIPEMD-160 context.
void mbedtls_ripemd160_init(mbedtls_ripemd160_context *ctx)
Initialize RIPEMD-160 context.