adchpp::Encoder Class Reference

#include <Encoder.h>

Collaboration diagram for adchpp::Encoder:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static ADCHPP_DLL void fromBase32 (const char *src, uint8_t *dst, size_t len)
static std::string toBase32 (const uint8_t *src, size_t len)
static ADCHPP_DLL std::string & toBase32 (const uint8_t *src, size_t len, std::string &tgt)

Static Public Attributes

static ADCHPP_DLL const char base32Alphabet [32]
static ADCHPP_DLL const int8_t base32Table [256]

Detailed Description

Definition at line 24 of file Encoder.h.


Member Function Documentation

void adchpp::Encoder::fromBase32 ( const char *  src,
uint8_t *  dst,
size_t  len 
) [static]

Definition at line 83 of file Encoder.cpp.

References base32Table.

Referenced by adchpp::CID::CID(), and adchpp::ClientManager::verifyPassword().

Here is the caller graph for this function:

static std::string adchpp::Encoder::toBase32 ( const uint8_t *  src,
size_t  len 
) [inline, static]

Definition at line 28 of file Encoder.h.

References toBase32().

Here is the call graph for this function:

string & adchpp::Encoder::toBase32 ( const uint8_t *  src,
size_t  len,
std::string &  tgt 
) [static]

Definition at line 54 of file Encoder.cpp.

References base32Alphabet, and dcassert.

Referenced by adchpp::ClientManager::enterVerify(), and toBase32().

Here is the caller graph for this function:


Member Data Documentation

const char adchpp::Encoder::base32Alphabet [static]
Initial value:
 { 
    'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 
    'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 
    'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 
    'Y', 'Z', '2', '3', '4', '5', '6', '7'
}

Definition at line 35 of file Encoder.h.

Referenced by adchpp::ClientManager::makeSID(), and toBase32().

const int8_t adchpp::Encoder::base32Table [static]
Initial value:
 {
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,26,27,28,29,30,31,-1,-1,-1,-1,-1,-1,-1,-1,
    -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,
    15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,
    -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,
    15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
}

Definition at line 34 of file Encoder.h.

Referenced by fromBase32().

Generated on Sat Nov 27 23:38:39 2010 for adchpp by  doxygen 1.6.3