library programming reference | (lib) rmd160 |
header
In order to begin using the RMD160 library in a C program, the header must be included as shown by this segment of code:
#include <rmd160.h>
data
Multiple RMD160 message digest instances are supported, so each instance must have its own handle. A special type is defined in the header to declare the handle variables. An example declaration is show below:
RMD160 handle;
functions
A calling program that uses RMD160 must first create a new instance using rmd160_new() which returns a reference handle of type RMD160. With that handle, the other functions may be called according to their defined interface. Finally, the instance referenced by the handle must be released using rmd160_destroy.
Documentation for the functions and macros is below: