Microchip® Advanced Software Framework

base64decode.c File Reference

This module contains WINC3400 Host MCU Provisioning implementation.

Copyright (c) 2019 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.

Referenced by post_main_page().

uint32 decodeLength ( uint8 buff,
uint8 lenBytes 
)

Referenced by post_main_page().

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().