My Project
|
Functions | |
int | Base64_Decode (const byte *in, word32 inLen, byte *out, word32 *outLen) |
This function decodes the given Base64 encoded input, in, and stores the result in the output buffer out. It also sets the size written to the output buffer in the variable outLen. More... | |
int | Base64_Encode (const byte *in, word32 inLen, byte *out, word32 *outLen) |
This function encodes the given input, in, and stores the Base64 encoded result in the output buffer out. It writes the data with the traditional ‘ ’ line endings, instead of escaped %0A line endings. Upon successfully completing, this function also sets outLen to the number of bytes written to the output buffer. More... | |
int | Base64_EncodeEsc (const byte *in, word32 inLen, byte *out, word32 *outLen) |
This function encodes the given input, in, and stores the Base64 encoded result in the output buffer out. It writes the data with %0A escaped line endings instead of ‘ ’ line endings. Upon successfully completing, this function also sets outLen to the number of bytes written to the output buffer. More... | |
int | Base64_Encode_NoNl (const byte *in, word32 inLen, byte *out, word32 *outLen) |
This function encodes the given input, in, and stores the Base64 encoded result in the output buffer out. It writes the data with no new lines. Upon successfully completing, this function also sets outLen to the number of bytes written to the output buffer. More... | |
int | Base16_Decode (const byte *in, word32 inLen, byte *out, word32 *outLen) |
This function decodes the given Base16 encoded input, in, and stores the result in the output buffer out. It also sets the size written to the output buffer in the variable outLen. More... | |
int | Base16_Encode (const byte *in, word32 inLen, byte *out, word32 *outLen) |
Encode input to base16 output. More... | |
int Base16_Decode | ( | const byte * | in, |
word32 | inLen, | ||
byte * | out, | ||
word32 * | outLen | ||
) |
This function decodes the given Base16 encoded input, in, and stores the result in the output buffer out. It also sets the size written to the output buffer in the variable outLen.
in | pointer to the input buffer to decode |
inLen | length of the input buffer to decode |
out | pointer to the output buffer in which to store the decoded message |
outLen | pointer to the length of the output buffer. Updated with the bytes written at the end of the function call |
Example
int Base16_Encode | ( | const byte * | in, |
word32 | inLen, | ||
byte * | out, | ||
word32 * | outLen | ||
) |
Encode input to base16 output.
in | Pointer to input buffer to be encoded. |
inLen | Length of input buffer. |
out | Pointer to output buffer. |
outLen | Length of output buffer. Is set to len of encoded output. |
Example
int Base64_Decode | ( | const byte * | in, |
word32 | inLen, | ||
byte * | out, | ||
word32 * | outLen | ||
) |
This function decodes the given Base64 encoded input, in, and stores the result in the output buffer out. It also sets the size written to the output buffer in the variable outLen.
in | pointer to the input buffer to decode |
inLen | length of the input buffer to decode |
out | pointer to the output buffer in which to store the decoded message |
outLen | pointer to the length of the output buffer. Updated with the bytes written at the end of the function call |
Example
int Base64_Encode | ( | const byte * | in, |
word32 | inLen, | ||
byte * | out, | ||
word32 * | outLen | ||
) |
This function encodes the given input, in, and stores the Base64 encoded result in the output buffer out. It writes the data with the traditional ‘
’ line endings, instead of escaped %0A line endings. Upon successfully completing, this function also sets outLen to the number of bytes written to the output buffer.
in | pointer to the input buffer to encode |
inLen | length of the input buffer to encode |
out | pointer to the output buffer in which to store the encoded message |
outLen | pointer to the length of the output buffer in which to store the encoded message |
Example
int Base64_Encode_NoNl | ( | const byte * | in, |
word32 | inLen, | ||
byte * | out, | ||
word32 * | outLen | ||
) |
This function encodes the given input, in, and stores the Base64 encoded result in the output buffer out. It writes the data with no new lines. Upon successfully completing, this function also sets outLen to the number of bytes written to the output buffer.
in | pointer to the input buffer to encode |
inLen | length of the input buffer to encode |
out | pointer to the output buffer in which to store the encoded message |
outLen | pointer to the length of the output buffer in which to store the encoded message |
Example
int Base64_EncodeEsc | ( | const byte * | in, |
word32 | inLen, | ||
byte * | out, | ||
word32 * | outLen | ||
) |
This function encodes the given input, in, and stores the Base64 encoded result in the output buffer out. It writes the data with %0A escaped line endings instead of ‘
’ line endings. Upon successfully completing, this function also sets outLen to the number of bytes written to the output buffer.
in | pointer to the input buffer to encode |
inLen | length of the input buffer to encode |
out | pointer to the output buffer in which to store the encoded message |
outLen | pointer to the length of the output buffer in which to store the encoded message |
Example