B_DecryptInit.
B_DecryptUpdate

B_DecryptUpdate

B_DecryptUpdate

int B_DecryptUpdate (

 

B_ALGORITHM_OBJ

algorithmObject,

/* algorithm object */

unsigned char

*partOut,

/* output data buffer */

unsigned int

*partOutLen,

/* length of output data */

unsigned int

maxPartOutLen,

/* size of output data buffer */

unsigned char

*partIn,

/* input data */

unsigned int

partInLen,

/* length of input data */

B_ALGORITHM_OBJ

randomAlgorithm,

/* random byte source */

A_SURRENDER_CTX *surrenderContext

/* surrender context */

);

 

 

 

 

 

Description

B_DecryptUpdate updates the decrypting process specified by algorithmObject with partInLen bytes from partIn, writing the decrypted output to partOut, which is a buffer supplied by the caller of at least maxPartOutLen bytes, and setting partOutLen to the number of bytes written to partOut. The algorithm object for supplying random numbers is randomAlgorithm; it may be (B_ALGORITHM_OBJ)NULL_PTR for decrypting algorithms that do not need random numbers. 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.may be called zero or more times to supply the data by parts. See

Return value

Value

Description

0

Operation was successful.

non-zero

see Appendix A, ”Crypto-C Error Types”

 

 

3 0 2

R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l

Page 312
Image 312
RSA Security 5 manual Int BDecryptUpdate