HTP 0.5
htp_base64.h File Reference
#include "bstr.h"

Go to the source code of this file.

Data Structures

struct  htp_base64_decoder

Enumerations

enum  htp_base64_decodestep { step_a , step_b , step_c , step_d }

Functions

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

Detailed Description

Enumeration Type Documentation

◆ htp_base64_decodestep

Enumerator
step_a 
step_b 
step_c 
step_d 

Function Documentation

◆ htp_base64_decode()

int htp_base64_decode ( htp_base64_decoder * decoder,
const void * _code_in,
int length_in,
void * _plaintext_out,
int length_out )

Feed the supplied memory range to the decoder.

Parameters
[in]decoder
[in]_code_in
[in]length_in
[in]_plaintext_out
[in]length_out
Returns
how many bytes were placed into plaintext output

◆ htp_base64_decode_bstr()

bstr * htp_base64_decode_bstr ( bstr * input)

Base64-decode input, given as bstring.

Parameters
[in]input
Returns
new base64-decoded bstring

◆ htp_base64_decode_mem()

bstr * htp_base64_decode_mem ( const void * data,
size_t len )

Base64-decode input, given as memory range.

Parameters
[in]data
[in]len
Returns
new base64-decoded bstring

◆ htp_base64_decode_single()

int htp_base64_decode_single ( signed char value_in)

Decode single base64-encoded character.

Parameters
[in]value_in
Returns
decoded character

◆ htp_base64_decoder_init()

void htp_base64_decoder_init ( htp_base64_decoder * decoder)

Initialize base64 decoder.

Parameters
[in]decoder