RSA BSAFE Crypto-C

Cryptographic Components for C

Search

Converting Data

ASCII encoding and decoding is required to send encrypted or signed data using communication protocols that allow transmission of printable characters only. In this case, the application must convert the encrypted 8-bit values to a string of printable characters.

If the data is in binary format, but required in ASCII format, or vice versa, Crypto-C provides functions to encode and decode according to the RFC 1113 standard.

Call B_EncodeInit(), B_EncodeUpdate() and B_EncodeFinal() to perform data conversion operations. These operations use AI_RFC1113Recode.

note.gif
Decoding operations are performed by B_DecodeInit(), B_DecodeUpdate() and B_DecodeFinal().

The following samples demonstrate data conversion:


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 068-001001-6210-001-000 - 6.2.1