add switch_md5

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10085 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2008-10-20 22:45:09 +00:00
1 parent 30c318b995
commit b17e3bff8a
4 files changed
+18 -11

No files matched your search

+10
View File
@@ -509,6 +509,8 @@ SWITCH_DECLARE(switch_status_t) switch_thread_cond_destroy(switch_thread_cond_t
/** UUIDs are formatted as: 00112233-4455-6677-8899-AABBCCDDEEFF */
#define SWITCH_UUID_FORMATTED_LENGTH 36
#define SWITCH_MD5_DIGESTSIZE 16
/**
* Format a UUID into a string, following the standard format
* @param buffer The buffer to place the formatted UUID string into. It must
@@ -531,6 +533,14 @@ SWITCH_DECLARE(void) switch_uuid_get(switch_uuid_t *uuid);
*/
SWITCH_DECLARE(switch_status_t) switch_uuid_parse(switch_uuid_t *uuid, const char *uuid_str);
/**
* MD5 in one step
* @param digest The final MD5 digest
* @param input The message block to use
* @param inputLen The length of the message block
*/
SWITCH_DECLARE(switch_status_t) switch_md5(unsigned char digest[SWITCH_MD5_DIGESTSIZE], const void *input, switch_size_t inputLen);
/** @} */
/**