This object allows the caller to pass one or more buffers into the CRC calculation.
If the caller only has one buffer to compute the CRC then the "nextBlock" function is not needed. This function must be called for the first buffer over which a CRC is to be computed.
As a side effect, this function resets the CRC calculation by setting the CRC register to either zero or the configured "initValue".
- Parameters
-
pBlock | [ in ] Pointer to a buffer of 8 bit bytes of data (binary or text) |
blockSize | [ in ] The number of bytes in the buffer pointed to by pBlock |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pBlock is NULL, or blockSize is zero. |
P6R::eNotInitialized | A successful call to initialize has not been done. |