hashing algorithms More...
#include "jabberdlib.h"#include <cstring>#include <cstdlib>#include <sys/types.h>#include <stdio.h>#include <setjmp.h>#include <sys/stat.h>#include <fcntl.h>#include <errno.h>#include <signal.h>#include <syslog.h>#include <strings.h>#include <unistd.h>#include <sys/param.h>#include <sys/socket.h>#include <netinet/in.h>#include <netdb.h>#include <arpa/inet.h>#include <arpa/nameser.h>#include <sys/time.h>#include <stdarg.h>#include <ctype.h>#include <ctime>#include <pth.h>#include <expat.h>#include <utility>#include <list>#include <map>#include <glibmm.h>#include <varargs.h>#include <string>#include <vector>#include <sstream>#include <stdexcept>#include <set>#include <pointer.tcc>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]) |
hashing algorithms
This file currently only implements the SHA-1 hashing algorithm. The implementation is based on the method 1 in RFC 3174.
| void shaBlock | ( | unsigned char * | dataIn, | |
| int | len, | |||
| unsigned char | hashout[20] | |||
| ) |
References xmppd::sha1::final(), and xmppd::sha1::update().
| char* shahash | ( | char const * | str | ) |
References shahash_r().
Referenced by jutil_regkey().
| void shahash_r | ( | const char * | str, | |
| char | hashbuf[41] | |||
| ) |
References xmppd::hash::final_hex(), and xmppd::sha1::update().
Referenced by dialback_randstr(), shahash(), and xstream_header().
1.6.3