RSA Security 5.2.2 Projection Television User Manual


 
Converting Data Between Binary and ASCII
176 RSA BSAFE Crypto-C Developers Guide
Step 5: Final
Finalize the decoding process, writing out any bytes remaining:
Step 6: Destroy
When you are done, remember to destroy all objects and free up any memory that has
been allocated:
if ((status = B_DecodeUpdate
(asciiDecoder, binaryDecoding, &binaryDecodingLenUpdate,
asciiEncodingLenTotal, asciiEncoding,
asciiEncodingLenTotal)) != 0)
break;
unsigned int binaryDecodingLenFinal;
if ((status = B_DecodeFinal
(asciiDecoder, binaryDecoding + binaryDecodingLenUpdate,
&binaryDecodingLenFinal,
asciiEncodingLenTotal - binaryDecodingLenUpdate)) != 0)
break;
B_DestroyAlgorithmObject (&asciiDecoder);
T_free (binaryDecoding);