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.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/charon/transforms/hmac.h b/Source/charon/transforms/hmac.h
index 3df69e838..d415acedd 100644
--- a/Source/charon/transforms/hmac.h
+++ b/Source/charon/transforms/hmac.h
@@ -52,10 +52,8 @@ struct hmac_t {
* @param this calling hmac
* @param data chunk of data to authenticate
* @param[out] buffer pointer where the generated bytes will be written
- * @return
- * - SUCCESS in any case
*/
- status_t (*get_mac) (hmac_t *this, chunk_t data, u_int8_t *buffer);
+ void (*get_mac) (hmac_t *this, chunk_t data, u_int8_t *buffer);
/**
* @brief Generates message authentication code and
@@ -69,11 +67,8 @@ struct hmac_t {
* @param this calling hmac
* @param data chunk of data to authenticate
* @param[out] chunk chunk which will hold generated bytes
- * @return
- * - SUCCESS, or
- * - OUT_OF_RES if space could not be allocated
*/
- status_t (*allocate_mac) (hmac_t *this, chunk_t data, chunk_t *chunk);
+ void (*allocate_mac) (hmac_t *this, chunk_t data, chunk_t *chunk);
/**
* @brief Get the block size of this hmac.
@@ -90,19 +85,15 @@ struct hmac_t {
*
* @param this calling hmac
* @param key key to set
- * @return
- * - SUCCESS in any case
*/
- status_t (*set_key) (hmac_t *this, chunk_t key);
+ void (*set_key) (hmac_t *this, chunk_t key);
/**
* @brief Destroys a hmac object.
*
* @param this hmac_t object to destroy
- * @return
- * - SUCCESS in any case
*/
- status_t (*destroy) (hmac_t *this);
+ void (*destroy) (hmac_t *this);
};
/**
@@ -114,7 +105,7 @@ struct hmac_t {
* @param hash_algorithm hash algorithm to use
* @return
* - hmac_t if successfully
- * - NULL if out of ressources or hash not supported
+ * - NULL if hash not supported
*
* @ingroup transforms
*/