Added static method to get the length of a raw digest.

git-svn-id: http://voip.null.ro/svn/yate@1081 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2006-10-19 13:14:42 +00:00
parent cee1f6228f
commit 8ae4144e92
1 changed files with 15 additions and 1 deletions

View File

@ -2542,6 +2542,13 @@ public:
*/
const unsigned char* rawDigest();
/**
* Return the length of the raw binary digest
* @return Constant value of 16
*/
inline static unsigned int rawLength()
{ return 16; }
/**
* Returns the standard hexadecimal representation of the message digest.
* The digest is finalized if if wasn't already
@ -2656,12 +2663,19 @@ public:
SHA1& operator<<(const char* value);
/**
* Returns a pointer to the raw 16-byte binary value of the message digest.
* Returns a pointer to the raw 20-byte binary value of the message digest.
* The digest is finalized if if wasn't already
* @return Pointer to the raw digest data or NULL if some error occured
*/
const unsigned char* rawDigest();
/**
* Return the length of the raw binary digest
* @return Constant value of 20
*/
inline static unsigned int rawLength()
{ return 20; }
/**
* Returns the standard hexadecimal representation of the message digest.
* The digest is finalized if if wasn't already