hash.cc File Reference

hashing algorithms More...

#include "jabberdlib.h"
#include <string>
#include <vector>
#include <sstream>
#include <stdexcept>

Namespaces

namespace  xmppd

Functions

void shahash_r (const char *str, char hashbuf[41])
char * shahash (char const *str)
void shaBlock (unsigned char *dataIn, int len, unsigned char hashout[20])

Detailed Description

hashing algorithms

This file currently only implements the SHA-1 hashing algorithm. The implementation is based on the method 1 in RFC 3174.


Function Documentation

void shaBlock ( unsigned char *  dataIn,
int  len,
unsigned char  hashout[20] 
)
char* shahash ( char const *  str  ) 

References shahash_r().

Referenced by jutil_regkey().

void shahash_r ( const char *  str,
char  hashbuf[41] 
)

Generated on Wed Mar 10 06:00:06 2010 for jabberd14 by  doxygen 1.6.1