Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
nettle/base64.h File Reference
#include "nettle-types.h"
+ Include dependency graph for nettle/base64.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  base64_decode_ctx
struct  base64_encode_ctx


#define base64_decode_final   nettle_base64_decode_final
#define base64_decode_init   nettle_base64_decode_init
#define BASE64_DECODE_LENGTH(length)   ((((length) + 1) * 6) / 8)
#define base64_decode_single   nettle_base64_decode_single
#define base64_decode_update   nettle_base64_decode_update
#define base64_encode_final   nettle_base64_encode_final
#define base64_encode_group   nettle_base64_encode_group
#define base64_encode_init   nettle_base64_encode_init
#define BASE64_ENCODE_LENGTH(length)   (((length) * 8 + 4)/6)
#define base64_encode_raw   nettle_base64_encode_raw
#define BASE64_ENCODE_RAW_LENGTH(length)   ((((length) + 2)/3)*4)
#define base64_encode_single   nettle_base64_encode_single
#define base64_encode_update   nettle_base64_encode_update
#define BASE64_TEXT_BLOCK_SIZE   4


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

Macro Definition Documentation

#define base64_decode_final   nettle_base64_decode_final
#define base64_decode_init   nettle_base64_decode_init
#define BASE64_DECODE_LENGTH (   length)    ((((length) + 1) * 6) / 8)
#define base64_decode_single   nettle_base64_decode_single
#define base64_decode_update   nettle_base64_decode_update
#define base64_encode_final   nettle_base64_encode_final
#define base64_encode_group   nettle_base64_encode_group
#define base64_encode_init   nettle_base64_encode_init
#define BASE64_ENCODE_LENGTH (   length)    (((length) * 8 + 4)/6)
#define base64_encode_raw   nettle_base64_encode_raw
#define BASE64_ENCODE_RAW_LENGTH (   length)    ((((length) + 2)/3)*4)
#define base64_encode_single   nettle_base64_encode_single
#define base64_encode_update   nettle_base64_encode_update
#define BASE64_TEXT_BLOCK_SIZE   4

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 
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