Chapter 4 Details of Crypto-C Functions 309
B_EncodeFinal
B_EncodeFinal
Description
B_EncodeFinal finalizes the encoding process specified by
algorithmObject
, writing
any remaining encoded 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
.
algorithmObject
is reset to the state it was in after the call to B_EncodeInit, so
that another encoding process may be performed. See
B_EncodeInit.
Return value
int B_EncodeFinal (
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 */
);
Value Description
0 Operation was successful.
non-zero see Appendix A, ”Crypto-C Error Types”