aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/transforms/hmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/transforms/hmac.h')
-rw-r--r--Source/charon/transforms/hmac.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/charon/transforms/hmac.h b/Source/charon/transforms/hmac.h
index 14cec6818..25b59d0b5 100644
--- a/Source/charon/transforms/hmac.h
+++ b/Source/charon/transforms/hmac.h
@@ -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