aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/transforms/prfs/prf.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/transforms/prfs/prf.h')
-rw-r--r--Source/charon/transforms/prfs/prf.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/charon/transforms/prfs/prf.h b/Source/charon/transforms/prfs/prf.h
index 9a79c6047..470556dc8 100644
--- a/Source/charon/transforms/prfs/prf.h
+++ b/Source/charon/transforms/prfs/prf.h
@@ -59,10 +59,8 @@ struct prf_t {
* @param this calling prf
* @param seed a chunk containing the seed for the next bytes
* @param[out] buffer pointer where the generated bytes will be written
- * @return
- * - SUCCESS in any case
*/
- status_t (*get_bytes) (prf_t *this, chunk_t seed, u_int8_t *buffer);
+ void (*get_bytes) (prf_t *this, chunk_t seed, u_int8_t *buffer);
/**
* @brief generates pseudo random bytes and allocate space for them.
@@ -70,11 +68,8 @@ struct prf_t {
* @param this calling prf
* @param seed a chunk containing the seed for the next bytes
* @param[out] chunk chunk which will hold generated bytes
- * @return
- * - SUCCESS in any case
- * - OUT_OF_RES if space could not be allocated
*/
- status_t (*allocate_bytes) (prf_t *this, chunk_t seed, chunk_t *chunk);
+ void (*allocate_bytes) (prf_t *this, chunk_t seed, chunk_t *chunk);
/**
* @brief get the block size of this prf.
@@ -89,19 +84,15 @@ struct prf_t {
*
* @param this calling prf
* @param key key to set
- * @return
- * - SUCCESS in any case
*/
- status_t (*set_key) (prf_t *this, chunk_t key);
+ void (*set_key) (prf_t *this, chunk_t key);
/**
* @brief Destroys a prf object..
*
* @param this prf_t object to destroy
- * @return
- * - SUCCESS in any case
*/
- status_t (*destroy) (prf_t *this);
+ void (*destroy) (prf_t *this);
};
/**
@@ -110,7 +101,7 @@ struct prf_t {
* @param pseudo_random_function Algorithm to use
* @return
* - prf_t if successfully
- * - NULL if out of ressources or prf not supported
+ * - NULL if prf not supported
*
* @ingroup prfs
*/