diff options
Diffstat (limited to 'Source/charon/transforms/prf_plus.h')
-rw-r--r-- | Source/charon/transforms/prf_plus.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Source/charon/transforms/prf_plus.h b/Source/charon/transforms/prf_plus.h index c7396b5fc..812af05aa 100644 --- a/Source/charon/transforms/prf_plus.h +++ b/Source/charon/transforms/prf_plus.h @@ -49,10 +49,8 @@ struct prf_plus_t { * @param this calling prf_plus * @param length number of bytes to get * @param[out] buffer pointer where the generated bytes will be written - * @return - * - SUCCESS in any case */ - status_t (*get_bytes) (prf_plus_t *this, size_t length, u_int8_t *buffer); + void (*get_bytes) (prf_plus_t *this, size_t length, u_int8_t *buffer); /** * @brief Allocate pseudo random bytes. @@ -63,20 +61,15 @@ struct prf_plus_t { * @param this calling prf_plus * @param length number of bytes to get * @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_plus_t *this, size_t length, chunk_t *chunk); + void (*allocate_bytes) (prf_plus_t *this, size_t length, chunk_t *chunk); /** * @brief Destroys a prf_plus_t object. * * @param this prf_plus_t object to destroy - * @return - * - SUCCESS in any case */ - status_t (*destroy) (prf_plus_t *this); + void (*destroy) (prf_plus_t *this); }; /** @@ -88,9 +81,7 @@ struct prf_plus_t { * * @param prf prf object to use * @param seed input seed for prf - * @return - * - prf_plus_t if successfully - * - NULL if out of ressources + * @return created prf_plus_t * * @ingroup transforms */ |