NetBase64_Decode

Decode a Base64 value to a hex value .

Files

net_base64.h/net_base64.c

Prototype

          NET_ARP_ADDR_LEN NetARP_CacheGetAddrHW (CPU_INT08U        *p_addr_hw
                                                  NET_ARP_ADDR_LEN   addr_hw_len_buf,
                                                  CPU_INT08U        *p_addr_protocol,
                                                  NET_ARP_ADDR_LEN   addr_protocol_len,
                                                  NET_ERR           *p_err);

Arguments

p_buf_in

Pointer to buffer holding encoded data.

buf_in_len

Length of data in buffer input.

p_buf_out

Pointer to a buffer that will receive the decoded data.

buf_out_len

Length of buffer output.

p_err

Pointer to variable that will receive the error code from this function:

NET_ERR_NONE
NET_ERR_FAULT_NULL_PTR
NET_UTIL_ERR_BUF_TOO_SMALL
NET_UTIL_ERR_NULL_SIZE

Returned Value

Length of returned hardware address, if available;

0, otherwise.

Required Configuration

None.

Notes / Warnings

From RFC #4648, Section 4 'Base 64 Encoding' "The encoding process represents 24-bit groups of input bits as output strings of 4 encoded characters. Each of [these encoded characters] is translated into a single character in the base 64 alphabet".