Pyrogenesis  trunk
Functions
base32.cpp File Reference
#include "precompiled.h"
Include dependency graph for base32.cpp:

Functions

void base32 (const size_t in_len, const u8 *in, u8 *out)
 generate the base32 textual representation of a buffer. More...
 

Function Documentation

void base32 ( const size_t  len,
const u8 in,
u8 out 
)

generate the base32 textual representation of a buffer.

Parameters
lenSize [bytes] of input
inBig-endian input data (assumed to be integral number of bytes)
outOutput string; zero-terminated. must be big enough (i.e. at least ceil(len*CHAR_BIT/5) + 1 chars)