Crypto functions

Functions

char * rxv_spin_hash (apr_pool_t *pool, const char *uniq)
char * rxv_spin_hmac (apr_pool_t *pool, const char *uniq, const char *salt)

Detailed Description

Crypto functions (mod_spin API)


Function Documentation

char* rxv_spin_hash ( apr_pool_t *  pool,
const char *  uniq 
)

Create MD5 hash, using ASCII letters only

Parameters:
pool Pool for allocation the hash
uniq String to hash
Returns:
MD5 hash of the string, 32 bytes long, encoded [a-p]
Example:
 rxv_spin_hash(pool,"some string");
char* rxv_spin_hmac ( apr_pool_t *  pool,
const char *  uniq,
const char *  salt 
)

Create MD5 HMAC, using ASCII letters only

Parameters:
pool Pool for allocation the hash
uniq String to hash
salt Key used for HMAC, must be 64 bytes long
Returns:
MD5 HMAC of the string, 32 bytes long, encoded [a-p]
Example:
 rxv_spin_hmac(pool,"some string",verysecretkey);
 All Files Functions Typedefs Enumerations Enumerator Defines

Generated on 29 Dec 2009 for mod_spin by  doxygen 1.6.1