quick function reference (lib) rmd160

RMD160

Handle reference to the RMD160 digest instance, implemented as a pointer to struct rmd160_object.

rmd160uint32

Integer type expected to be the most optimal type to store a 32-bit unsigned integer. The type may actually be larger than 32 bits if the platform has no 32-bit type.

RMD160 rmd160_copy( RMD160 target, RMD160 source )

Copy the state of one RMD160 instance into another. If the target is NULL, allocate a new instance. If the source is NULL, initialize the target to the empty state.

RMD160 rmd160_dup( RMD160 )

Duplicate one RMD160 instance, create a new one. If the source is NULL, initialize the target to the empty state.

RMD160 rmd160_init( RMD160 )

Initialize the given RMD160 instance to the empty state. If the target is NULL, allocate a new instance.

RMD160 rmd160_new()

Allocate a new RMD160 instance, initialized to the empty state.

int rmd160_destroy( RMD160 )

Destroy the given RMD160 instance. The reference handle becomes unusable.

int rmd160_append( RMD160, size_t, const unsigned char * )

Append a string of characters or bytes to the given RMD160 instance state.

int rmd160_append_fd( RMD160, int )

Append the contents of an open file, as referenced by a POSIX compliant file descriptor, to the given RMD160 instance state.

int rmd160_append_file( RMD160, FILE * )

Append the contents of an open file, as referenced by a standard C FILE pointer, to the given RMD160 instance state.

int _rmd160_calc( rmd160uint32 *, rmd160uint32 * )

Internal function which performs actual RIPEMD-160 checksum hashing calculations.

char *rmd160_sum_base16( RMD160, char * )

Extract the calculated checksum from the specified RMD160 instance, and store it into a given or allocated string of 40 characters in base 16, terminated with a 41st null character.

char *rmd160_sum_base32( RMD160, char * )

Extract the calculated checksum from the specified RMD160 instance, and store it into a given or allocated string of 32 characters in base 32, terminated with a 33rd null character.

unsigned char *rmd160_sum_bytes( RMD160, unsigned char * )

Extract the calculated checksum from the specified RMD160 instance, and store it into a given or allocated array of 20 bytes of type unsigned char.

rmd160uint32 *rmd160_sum_words( RMD160, rmd160uint32 * )

Extract the calculated checksum from the specified RMD160 instance, and store it into a given or allocated array of 5 words of type rmd160uint32.


The documentation, source code, and derived compilations are Copyright © 1999 by Philip Howard.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License [ GNU copy | local copy ] as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.