Microchip® Advanced Software Framework

winc1500/host_app/provisioning/base64decode.c File Reference

This module contains WINC1500 Host MCU Provisioning implementation.

Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.

#include "http_content.h"
#include <string.h>
#include <ctype.h>

Functions

uint32 base64decode (char *src, uint32 len)
 
uint32 decodeLength (uint8 *buff, uint8 *lenBytes)
 

Variables

static const char b64_table []
 

uint32 base64decode ( char *  src,
uint32  len 
)

References b64_table, buf, c, i, j, and len.

uint32 decodeLength ( uint8 buff,
uint8 lenBytes 
)

References i, and length.

const char b64_table[]
static
Initial value:
= {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', '0', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '+', '/'
}

Referenced by base64decode().