ec_base64_encode_to_string

March 26, 2020 Contributors

Name

ec_base64_encode_to_string — Apply base64 encoding to a string and store the result to an ec_string where the previous content will be replaced

Synopsis

#include "util.h"

| int **ec_base64_encode_to_string** ( | src, |   |
|   | src_len, |   |
|   | deststring, |   |
|   | fold); |   |

const char * <var class="pdparam">src</var>;
size_t <var class="pdparam">src_len</var>;
string * <var class="pdparam">deststring</var>;
int <var class="pdparam">fold</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Apply base64 encoding to a string and store the result to an ec_string where the previous content will be replaced.

Parameters

src

the buffer to encode

src_len

the size of the buffer to encode

deststring

the destination for the encoded result

fold

if true, the encoded line will be folded so each line will not exceed 76 chars.