aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/transforms/prfs
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/transforms/prfs')
-rw-r--r--Source/charon/transforms/prfs/prf.h10
-rw-r--r--Source/charon/transforms/prfs/prf_hmac.c4
-rw-r--r--Source/charon/transforms/prfs/prf_hmac.h6
3 files changed, 12 insertions, 8 deletions
diff --git a/Source/charon/transforms/prfs/prf.h b/Source/charon/transforms/prfs/prf.h
index da624a0f0..2b6aab46e 100644
--- a/Source/charon/transforms/prfs/prf.h
+++ b/Source/charon/transforms/prfs/prf.h
@@ -26,12 +26,14 @@
#include <encoding/payloads/transform_substructure.h>
+typedef struct prf_t prf_t;
+
/**
* Object representing a diffie hellman exchange
+ *
+ * @ingroup prfs
*/
-typedef struct prf_s prf_t;
-
-struct prf_s {
+struct prf_t {
/**
* @brief generates pseudo random bytes and writes them
* in the buffer
@@ -89,6 +91,8 @@ struct prf_s {
* @return
* - prf_t if successfully
* - NULL if out of ressources or prf not supported
+ *
+ * @ingroup prfs
*/
prf_t *prf_create(pseudo_random_function_t pseudo_random_function);
diff --git a/Source/charon/transforms/prfs/prf_hmac.c b/Source/charon/transforms/prfs/prf_hmac.c
index 9668e1b41..fdcce4af2 100644
--- a/Source/charon/transforms/prfs/prf_hmac.c
+++ b/Source/charon/transforms/prfs/prf_hmac.c
@@ -26,9 +26,9 @@
#include <utils/allocator.h>
#include <transforms/hmac.h>
-typedef struct private_prf_hmac_s private_prf_hmac_t;
+typedef struct private_prf_hmac_t private_prf_hmac_t;
-struct private_prf_hmac_s {
+struct private_prf_hmac_t {
/**
* public interface for this prf
*/
diff --git a/Source/charon/transforms/prfs/prf_hmac.h b/Source/charon/transforms/prfs/prf_hmac.h
index 22e993bee..427cdd4d7 100644
--- a/Source/charon/transforms/prfs/prf_hmac.h
+++ b/Source/charon/transforms/prfs/prf_hmac.h
@@ -29,13 +29,13 @@
#include <types.h>
#include <transforms/hashers/hasher.h>
+typedef struct prf_hmac_t prf_hmac_t;
+
/**
* Object representing a prf using HMAC
*
*/
-typedef struct prf_hmac_s prf_hmac_t;
-
-struct prf_hmac_s {
+struct prf_hmac_t {
/**
* generic prf_t interface for this prf