- added ability to append data

This commit is contained in:
Martin Willi
2005-11-22 12:00:46 +00:00
parent a70d953d58
commit 1318dd4e36
2 changed files with 55 additions and 16 deletions
+10
View File
@@ -37,6 +37,11 @@ struct hmac_s {
/**
* @brief Generate message authentication code.
*
* If buffer is NULL, no result is given back. A next call will
* append the data to already supplied. If buffer is not NULL,
* the mac of all apended data is calculated, returned and the
* state of the hmac_t reset;
*
* @param this calling hmac
* @param data chunk of data to authenticate
* @param [out]buffer pointer where the generated bytes will be written
@@ -49,6 +54,11 @@ struct hmac_s {
* @brief Generates message authentication code and
* allocate space for them.
*
* If chunk is NULL, no result is given back. A next call will
* append the data to already supplied. If chunk is not NULL,
* the mac of all apended data is calculated, returned and the
* state of the hmac_t reset;
*
* @param this calling hmac
* @param data chunk of data to authenticate
* @param [out]chunk chunk which will hold generated bytes