HTP  0.3
Functions
htp_base64.c File Reference
#include "htp_base64.h"
#include "bstr.h"
Include dependency graph for htp_base64.c:

Functions

int htp_base64_decode_single (char value_in)
void htp_base64_decoder_init (htp_base64_decoder *decoder)
int htp_base64_decode (htp_base64_decoder *decoder, const char *code_in, const int length_in, char *plaintext_out, int length_out)
bstrhtp_base64_decode_bstr (bstr *input)
bstrhtp_base64_decode_mem (char *data, size_t len)

Detailed Description

Author:
Ivan Ristic <ivanr@webkreator.com>

Function Documentation

int htp_base64_decode ( htp_base64_decoder decoder,
const char *  code_in,
const int  length_in,
char *  plaintext_out,
int  length_out 
)

Feed the supplied memory range to the decoder.

Parameters:
decoder
code_in
length_in
plaintext_out
length_out
Returns:
how many bytes were placed into plaintext output

Here is the call graph for this function:

Here is the caller graph for this function:

bstr* htp_base64_decode_bstr ( bstr input)

Base64-decode input, given as bstring.

Parameters:
input
Returns:
new base64-decoded bstring

Here is the call graph for this function:

bstr* htp_base64_decode_mem ( char *  data,
size_t  len 
)

Base64-decode input, given as memory range.

Parameters:
data
len
Returns:
new base64-decoded bstring

Here is the call graph for this function:

Here is the caller graph for this function:

int htp_base64_decode_single ( char  value_in)

Decode single base64-encoded character.

Parameters:
value_in
Returns:
decoded character

Here is the caller graph for this function:

void htp_base64_decoder_init ( htp_base64_decoder decoder)

Initialize base64 decoder.

Parameters:
decoder

Here is the caller graph for this function: