Chapter 4 Details of Crypto-C Functions 329
B_RandomUpdate
B_RandomUpdate
Description
B_RandomUpdate mixes
inputLen
bytes from
input
into
randomAlgorithm
. The surrender
context for processing and canceling during lengthy operations is
surrenderContext
; if
its value is (A_SURRENDER_CTX *)NULL_PTR, Crypto-C does not use it. See
B_RandomInit.
Return value
int B_RandomUpdate (
B_ALGORITHM_OBJ randomAlgorithm, /* random algorithm */
unsigned char *input, /* block values to mix in */
unsigned int inputLen, /* length of input block */
A_SURRENDER_CTX *surrenderContext /* surrender context */
);
Value Description
0 Operation was successful.
non-zero see Appendix A, ”Crypto-C Error Types”