Data Structures | Functions | Variables

include/beecrypt/ripemd256.h File Reference

RIPEMD-256 hash function, headers. More...

#include "beecrypt/beecrypt.h"
Include dependency graph for ripemd256.h:

Go to the source code of this file.

Data Structures

struct  ripemd256Param
 Holds all the parameters necessary for the RIPEMD-128 algorithm. More...

Functions

void ripemd256Process (ripemd256Param *mp)
 This function performs the core of the RIPEMD-128 hash algorithm; it processes a block of 64 bytes.
int ripemd256Reset (ripemd256Param *mp)
 This function resets the parameter block so that it's ready for a new hash.
int ripemd256Update (ripemd256Param *mp, const byte *data, size_t size)
 This function should be used to pass successive blocks of data to be hashed.
int ripemd256Digest (ripemd256Param *mp, byte *digest)
 This function finishes the current hash computation and copies the digest value into digest.

Variables

const hashFunction ripemd256
 Holds the full API description of the RIPEMD-128 algorithm.

Detailed Description

RIPEMD-256 hash function, headers.

Author:
Jeff Johnson <jbj@rpm5.org>
Bob Deblier <bob.deblier@telenet.be>

Function Documentation

int ripemd256Digest ( ripemd256Param mp,
byte digest 
)

This function finishes the current hash computation and copies the digest value into digest.

Parameters:
mpThe hash function's parameter block.
digestThe place to store the 20-byte digest.
Return values:
0on success.
void ripemd256Process ( ripemd256Param mp )

This function performs the core of the RIPEMD-128 hash algorithm; it processes a block of 64 bytes.

Parameters:
mpThe hash function's parameter block.
int ripemd256Reset ( ripemd256Param mp )

This function resets the parameter block so that it's ready for a new hash.

Parameters:
mpThe hash function's parameter block.
Return values:
0on success.
int ripemd256Update ( ripemd256Param mp,
const byte data,
size_t  size 
)

This function should be used to pass successive blocks of data to be hashed.

Parameters:
mpThe hash function's parameter block.
data
size
Return values:
0on success.

Variable Documentation

Holds the full API description of the RIPEMD-128 algorithm.