function: rmd160_sum_bytes | (library) rmd160 |
Name
rmd160_sum_bytes - yield digest sum as an array of bytes
Synopsis
unsigned char *rmd160_sum_bytes( RMD160 instance, unsigned char *sum )
Description
rmd160_sum_bytes returns the RMD160 message digest sum as an array of 20 8-bit bytes stored in an array of type unsigned char with 20 elements.
instance is the RMD160 message digest instance from which the sum is obtained.
sum is a pointer to an array of type unsigned char containing at least 20 elements into which the sum will be written, or is NULL indicating that an array of type unsigned char of 20 elements will be dynamically allocated for the sum, which must be freed by the calling program via the standard free() function.
Return values
A pointer to an array of type char is returned. If sum was given as NULL, then the returned value points to dynamically allocated memory that the caller must free via the standard free() function. The value NULL is returned if memory cannot be allocated, or if instance is NULL.
Errors
Errors are given in the return value.
See also
rmd160 homepage