ze-filter  (ze-filter-0.8.0-develop-180218)
ze-msg-hash.h File Reference

Go to the source code of this file.

Macros

#define HASH_PLAIN   0
 
#define HASH_MD5   1
 
#define HASH_SHA1   2
 
#define HASH_UNDEF   -1
 
#define __ZE_MSG_HASH_H   1
 

Functions

bool jmc_str2md5 (char *sout, unsigned char *sin, size_t szout)
 
bool jmc_str2sha1 (char *sout, unsigned char *sin, size_t szout)
 
bool str2hash2hex (int code, char *sout, char *sin, size_t szout)
 
bool str2hash2b64 (int code, char *sout, char *sin, size_t szout)
 
int hash_label2code (char *label)
 
char * hash_code2label (int code)
 

Macro Definition Documentation

◆ __ZE_MSG_HASH_H

#define __ZE_MSG_HASH_H   1

Definition at line 44 of file ze-msg-hash.h.

◆ HASH_MD5

#define HASH_MD5   1

Definition at line 28 of file ze-msg-hash.h.

◆ HASH_PLAIN

#define HASH_PLAIN   0

Definition at line 27 of file ze-msg-hash.h.

◆ HASH_SHA1

#define HASH_SHA1   2

Definition at line 29 of file ze-msg-hash.h.

◆ HASH_UNDEF

#define HASH_UNDEF   -1

Definition at line 31 of file ze-msg-hash.h.

Function Documentation

◆ hash_code2label()

char* hash_code2label ( int  code)

Definition at line 209 of file ze-msg-hash.c.

◆ hash_label2code()

int hash_label2code ( char *  label)

Definition at line 189 of file ze-msg-hash.c.

◆ jmc_str2md5()

bool jmc_str2md5 ( char *  sout,
unsigned char *  sin,
size_t  szout 
)

Definition at line 37 of file ze-msg-hash.c.

◆ jmc_str2sha1()

bool jmc_str2sha1 ( char *  sout,
unsigned char *  sin,
size_t  szout 
)

Definition at line 60 of file ze-msg-hash.c.

◆ str2hash2b64()

bool str2hash2b64 ( int  code,
char *  sout,
char *  sin,
size_t  szout 
)

Definition at line 148 of file ze-msg-hash.c.

◆ str2hash2hex()

bool str2hash2hex ( int  code,
char *  sout,
char *  sin,
size_t  szout 
)

Definition at line 107 of file ze-msg-hash.c.