RIPEMD320 API Overview
RIPEMD320 API assists you in generating RIPEMD320 message digests.
RIPEMD320 message digests can be generated in two modes: accumulative and non-accumulative.
The accumulative mode is applied when the data for which the digest is calculated (data) represents one or more continuous memory block(s) or when the data is created at runtime in many steps (for instance, when reading a file).
Non-accumulative mode can be applied when the data represents only one continuous memory block.
Note. When the data represents just one continuous memory block, both methods can be applied.
To generate the message digest in the accumulative mode, perform the following:
Allocate at least SLC_RIPEMD320_CONTEXTSIZE bytes for the context.
Call the SL_RIPEMD320_Update function for each continuous memory block of data to perform the calculations.
Note. Call the SL_RIPEMD320_FinalHex function when you need to retrieve the hexadecimal string representation of the message digest.
To generate the message digest in the non-accumulative mode, perform the following:
Note 1. Call the SL_RIPEMD320_CalculateHex function when you need to retrieve the hexadecimal string representation of the message digest.
Note 2. You can use SL_RIPEMD320_CalculateStr and SL_RIPEMD320_CalculateStrHex functions (instead of SL_RIPEMD320_Calculate and SL_RIPEMD320_CalculateHex functions) if the data represents a null-terminated string.
RIPEMD320 API Functions | Useful Links | HashCalc
Samples RIPEMD320 message digest generation for a file
RIPEMD320 message digest generation for a string
|Send Feedback to SlavaSoft Inc.||Tell a friend about QuickHash Library|