Flesh out membership certificate with signature, better serialize/deserialize, and rename parameter to qualifier to make better conceptual sense.

This commit is contained in:
Adam Ierymenko 2013-10-04 12:24:21 -04:00
parent ca6c0fad08
commit ea4e1136dd
6 changed files with 314 additions and 69 deletions

View file

@ -148,6 +148,16 @@ public:
static unsigned int unhex(const char *hex,void *buf,unsigned int len);
static inline unsigned int unhex(const std::string &hex,void *buf,unsigned int len) { return unhex(hex.c_str(),buf,len); }
/**
* @param hex Hexadecimal ASCII
* @param hexlen Length of hex ASCII
* @param buf Buffer to fill
* @param len Length of buffer
* @return Number of bytes actually written to buffer
*/
static unsigned int unhex(const char *hex,unsigned int hexlen,void *buf,unsigned int len)
throw();
/**
* @param buf Buffer to fill
* @param bytes Number of random bytes to generate