Skip to main content

Name

ec_base64_decode — Perform Base64 decoding of a string

Synopsis

#include "util.h"

| int **ec_base64_decode** ( | src, |   | |   | src_len, |   | |   | dest, |   | |   | dest_len); |   |

const char * <var class="pdparam">src</var>; int <var class="pdparam">src_len</var>; const char * <var class="pdparam">dest</var>; int <var class="pdparam">dest_len</var>;

Description

Perform Base64 decoding of a string.

Parameters

src

The buffer containing the Base64 string to decode.

src_len

The buffer length of the string to decode.

dest

The buffer to store the resultant decoded string.

dest_len

The length of the buffer.

Return Values

This function returns the number of bytes used in the decoded string. If the buffer size determined by dest_len is shorter than what is needed to decode the src string, then 0 is returned.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?