B_RandomUpdate

 

 

B_RandomUpdate

 

 

 

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 */

);

 

 

 

 

 

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

Value

Description

0

Operation was successful.

non-zero

see Appendix A, ”Crypto-C Error Types”

 

 

C h a p t e r 4 D e t a i l s o f C r y p t o - C F u n c t i o n s

329

Page 339
Image 339
RSA Security 5 manual Int BRandomUpdate