Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
base64-decode.c File Reference
#include <assert.h>
#include <stdlib.h>
#include "base64.h"
+ Include dependency graph for base64-decode.c:

Macros

#define TABLE_END   -3
#define TABLE_INVALID   -1
#define TABLE_SPACE   -2

Functions

int nettle_base64_decode_final (struct base64_decode_ctx *ctx)
void nettle_base64_decode_init (struct base64_decode_ctx *ctx)
int nettle_base64_decode_single (struct base64_decode_ctx *ctx, uint8_t *dst, uint8_t src)
int nettle_base64_decode_update (struct base64_decode_ctx *ctx, unsigned *dst_length, uint8_t *dst, unsigned src_length, const uint8_t *src)

Variables

static const signed char decode_table [0x100]

Macro Definition Documentation

#define TABLE_END   -3
#define TABLE_INVALID   -1
#define TABLE_SPACE   -2

Function Documentation

int nettle_base64_decode_final ( struct base64_decode_ctx ctx)
void nettle_base64_decode_init ( struct base64_decode_ctx ctx)
int nettle_base64_decode_single ( struct base64_decode_ctx ctx,
uint8_t *  dst,
uint8_t  src 
)
int nettle_base64_decode_update ( struct base64_decode_ctx ctx,
unsigned *  dst_length,
uint8_t *  dst,
unsigned  src_length,
const uint8_t *  src 
)

Variable Documentation

const signed char decode_table[0x100]
static
Initial value:
{
-1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -1, -1, -2, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -3, -1, -1,
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
-1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
}