yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
b64.h File Reference

Base64 Utilities. More...

#include "procdefs.h"
#include "status.h"
Include dependency graph for b64.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

status_t b64_encode (const unsigned char *inbuff, unsigned int inbufflen, unsigned char *outbuff, unsigned int outbufflen, unsigned int linesize, unsigned int *retlen)
 base64 encode a stream adding padding and line breaks as per spec. More...
 
status_t b64_decode (const uint8_t *inbuff, uint32_t inbufflen, uint8_t *outbuff, uint32_t outbufflen, uint32_t *retlen)
 Decode a base64 string. More...
 
uint32_t b64_get_decoded_str_len (const uint8_t *inbuff, size_t inputLen)
 Calculate the length of the buffer required to decode the base64 string. More...
 
uint32_t b64_get_encoded_str_len (uint32_t inbufflen, uint32_t linesize)
 Get the output buffer size required for encoding the string. More...
 
boolean b64_valid_base64 (const char *b64str)
 Check if a string match base64 encoding or not. More...
 

Detailed Description

Base64 Utilities.