M5Unit-CRYPTO 0.0.1 git rev:e7369a6
Loading...
Searching...
No Matches
base64.hpp File Reference

base64 encoding More...

#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  m5
 Top level namespace of M5stack.
 

Functions

uint32_t m5::utility::encode_base64 (char *out, const uint32_t olen, const uint8_t *buf, const uint32_t blen, const uint8_t line_len, const bool urlEncode, const bool padding)
 encode Base64
 
bool m5::utility::encodeBase64 (char *out, const uint32_t olen, const uint8_t *buf, const uint32_t blen)
 Encode Base64(PEM)
 
bool m5::utility::encodeBase64URL (char *out, const uint32_t olen, const uint8_t *buf, const uint32_t blen)
 Encode Base64URL.
 

Detailed Description

base64 encoding

Function Documentation

◆ encode_base64()

uint32_t m5::utility::encode_base64 ( char * out,
const uint32_t olen,
const uint8_t * buf,
const uint32_t blen,
const uint8_t line_len,
const bool urlEncode,
const bool padding )

encode Base64

Parameters
[out]outOutput buffer
olenOutput buffer length
bufInput buffer
blenInput buffer length
line_len==0 No line breaks ! =0: Line break at that number of characters
urlEncodebase64url encoding if true
paddingEnable padding if true
Returns
Encoded length