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:
parent
cee1f6228f
commit
8ae4144e92
16
yateclass.h
16
yateclass.h
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue