80 unsigned int inbufflen,
81 unsigned char *outbuff,
82 unsigned int outbufflen,
83 unsigned int linesize,
84 unsigned int *retlen );
uint32_t b64_get_encoded_str_len(uint32_t inbufflen, uint32_t linesize)
Get the output buffer size required for encoding the string.
Definition: b64.c:242
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.
Definition: b64.c:257
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.
boolean b64_valid_base64(const char *b64str)
Check if a string match base64 encoding or not.
Definition: b64.c:372
status_t b64_decode(const uint8_t *inbuff, uint32_t inbufflen, uint8_t *outbuff, uint32_t outbufflen, uint32_t *retlen)
Decode a base64 string.
Definition: b64.c:312
status_t
global error return code
Definition: status_enum.h:210
Global error messages for status code enumerations.