#include "config.h"
#include <string.h>
#include <inttypes.h>
Go to the source code of this file.
|
void | ripemd160_starts (ripemd160_context *ctx) |
| RIPEMD-160 context setup. More...
|
|
void | ripemd160_update (ripemd160_context *ctx, const unsigned char *input, size_t ilen) |
| RIPEMD-160 process buffer. More...
|
|
void | ripemd160_finish (ripemd160_context *ctx, unsigned char output[20]) |
| RIPEMD-160 final digest. More...
|
|
void | ripemd160_process (ripemd160_context *ctx, const unsigned char data[64]) |
|
void | ripemd160 (const unsigned char *input, size_t ilen, unsigned char output[20]) |
| Output = RIPEMD-160( input buffer ) More...
|
|
int | ripemd160_file (const char *path, unsigned char output[20]) |
| Output = RIPEMD-160( file contents ) More...
|
|
void | ripemd160_hmac_starts (ripemd160_context *ctx, const unsigned char *key, size_t keylen) |
| RIPEMD-160 HMAC context setup. More...
|
|
void | ripemd160_hmac_update (ripemd160_context *ctx, const unsigned char *input, size_t ilen) |
| RIPEMD-160 HMAC process buffer. More...
|
|
void | ripemd160_hmac_finish (ripemd160_context *ctx, unsigned char output[20]) |
| RIPEMD-160 HMAC final digest. More...
|
|
void | ripemd160_hmac_reset (ripemd160_context *ctx) |
| RIPEMD-160 HMAC context reset. More...
|
|
void | ripemd160_hmac (const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char output[20]) |
| Output = HMAC-RIPEMD-160( hmac key, input buffer ) More...
|
|
int | ripemd160_self_test (int verbose) |
| Checkup routine. More...
|
|
#define POLARSSL_ERR_RIPEMD160_FILE_IO_ERROR -0x0074 |
Read/write error in file.
Definition at line 41 of file ripemd160.h.
void ripemd160 |
( |
const unsigned char * |
input, |
|
|
size_t |
ilen, |
|
|
unsigned char |
output[20] |
|
) |
| |
Output = RIPEMD-160( input buffer )
- Parameters
-
input | buffer holding the data |
ilen | length of the input data |
output | RIPEMD-160 checksum result |
int ripemd160_file |
( |
const char * |
path, |
|
|
unsigned char |
output[20] |
|
) |
| |
Output = RIPEMD-160( file contents )
- Parameters
-
path | input file name |
output | RIPEMD-160 checksum result |
- Returns
- 0 if successful, or POLARSSL_ERR_RIPEMD160_FILE_IO_ERROR
RIPEMD-160 final digest.
- Parameters
-
ctx | RIPEMD-160 context |
output | RIPEMD-160 checksum result |
void ripemd160_hmac |
( |
const unsigned char * |
key, |
|
|
size_t |
keylen, |
|
|
const unsigned char * |
input, |
|
|
size_t |
ilen, |
|
|
unsigned char |
output[20] |
|
) |
| |
Output = HMAC-RIPEMD-160( hmac key, input buffer )
- Parameters
-
key | HMAC secret key |
keylen | length of the HMAC key |
input | buffer holding the data |
ilen | length of the input data |
output | HMAC-RIPEMD-160 result |
RIPEMD-160 HMAC final digest.
- Parameters
-
ctx | HMAC context |
output | RIPEMD-160 HMAC checksum result |
RIPEMD-160 HMAC context reset.
- Parameters
-
ctx | HMAC context to be reset |
void ripemd160_hmac_starts |
( |
ripemd160_context * |
ctx, |
|
|
const unsigned char * |
key, |
|
|
size_t |
keylen |
|
) |
| |
RIPEMD-160 HMAC context setup.
- Parameters
-
ctx | HMAC context to be initialized |
key | HMAC secret key |
keylen | length of the HMAC key |
void ripemd160_hmac_update |
( |
ripemd160_context * |
ctx, |
|
|
const unsigned char * |
input, |
|
|
size_t |
ilen |
|
) |
| |
RIPEMD-160 HMAC process buffer.
- Parameters
-
ctx | HMAC context |
input | buffer holding the data |
ilen | length of the input data |
int ripemd160_self_test |
( |
int |
verbose | ) |
|
Checkup routine.
- Returns
- 0 if successful, or 1 if the test failed
RIPEMD-160 context setup.
- Parameters
-
ctx | context to be initialized |
void ripemd160_update |
( |
ripemd160_context * |
ctx, |
|
|
const unsigned char * |
input, |
|
|
size_t |
ilen |
|
) |
| |
RIPEMD-160 process buffer.
- Parameters
-
ctx | RIPEMD-160 context |
input | buffer holding the data |
ilen | length of the input data |