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

Macros

#define ENCODE(x)   (encode_table[0x3F & (x)])

Functions

unsigned nettle_base64_encode_final (struct base64_encode_ctx *ctx, uint8_t *dst)
void nettle_base64_encode_group (uint8_t *dst, uint32_t group)
void nettle_base64_encode_init (struct base64_encode_ctx *ctx)
void nettle_base64_encode_raw (uint8_t *dst, unsigned length, const uint8_t *src)
unsigned nettle_base64_encode_single (struct base64_encode_ctx *ctx, uint8_t *dst, uint8_t src)
unsigned nettle_base64_encode_update (struct base64_encode_ctx *ctx, uint8_t *dst, unsigned length, const uint8_t *src)

Variables

static const uint8_t encode_table [64] = "0123456789+/"

Macro Definition Documentation

#define ENCODE (   x)    (encode_table[0x3F & (x)])

Function Documentation

unsigned nettle_base64_encode_final ( struct base64_encode_ctx ctx,
uint8_t *  dst 
)
void nettle_base64_encode_group ( uint8_t *  dst,
uint32_t  group 
)
void nettle_base64_encode_init ( struct base64_encode_ctx ctx)
void nettle_base64_encode_raw ( uint8_t *  dst,
unsigned  length,
const uint8_t *  src 
)
unsigned nettle_base64_encode_single ( struct base64_encode_ctx ctx,
uint8_t *  dst,
uint8_t  src 
)
unsigned nettle_base64_encode_update ( struct base64_encode_ctx ctx,
uint8_t *  dst,
unsigned  length,
const uint8_t *  src 
)

Variable Documentation

const uint8_t encode_table[64] = "0123456789+/"
static