RSA Security 5 Projection Television User Manual


 
B_DecodeInit
298 RSA BSAFE Crypto-C Library Reference Manual
B_DecodeInit
Description
B_DecodeInit allocates and initializes algorithmObject for decoding (not decrypting)
data using the algorithm specified by a previous call to
B_SetAlgorithmInfo. For
example, the
AI_RFC1113Recode algorithm provides Base64 encoding and decoding to
convert binary data to and from a printable form suitable for most email systems.
Notice that there are no cryptographic keys for encoding or decoding.
B_DecodeInit only needs to be called once to set up a decode algorithm. The
B_DecodeUpdate routine can be called multiple times to process blocks of data, and
B_DecodeFinal is called once to process the last block which includes removing any
trailing pad bytes. After
B_DecodeFinal is called, B_DecodeUpdate can be called to
start decoding another sequence of blocks. There is no need to call
B_DecodeInit
again.
Return value
int B_DecodeInit (
B_ALGORITHM_OBJ algorithmObject /* algorithm object */
);
Value Description
0 Operation was successful.
non-zero see Appendix A, “Crypto-C Error Types”