bctoolbox_base64_encode(NULL,&b64Size,encryptedMessage,encryptedMessageLength);/* b64Size is 0, so it is set to the requested output buffer size */
encryptedMessageb64=malloc(b64Size+1);/* allocate a buffer of requested size +1 for NULL termination */
bctoolbox_base64_encode(encryptedMessageb64,&b64Size,encryptedMessage,encryptedMessageLength);/* b64Size is 0, so it is set to the requested output buffer size */
encryptedMessageb64[b64Size]='\0';/* libxml need a null terminated string */
bctoolbox_base64_decode(NULL,&encryptedMessageLength,encryptedMessageb64,strlen((char*)encryptedMessageb64));/* encryptedMessageLength is 0, so it will be set to the requested buffer length */