diff options
Diffstat (limited to 'Source/charon/transforms/prfs/prf.c')
-rw-r--r-- | Source/charon/transforms/prfs/prf.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/charon/transforms/prfs/prf.c b/Source/charon/transforms/prfs/prf.c index ebf28d5c9..e1cc13990 100644 --- a/Source/charon/transforms/prfs/prf.c +++ b/Source/charon/transforms/prfs/prf.c @@ -1,7 +1,7 @@ /** * @file prf.c * - * @brief Generic interface for pseudo-random-functions + * @brief Generic constructor for all prf_t * */ @@ -27,6 +27,19 @@ #include <transforms/prfs/prf_hmac.h> +/** + * string mappings for encryption_algorithm_t + */ +mapping_t pseudo_random_function_m[] = { +{PRF_UNDEFINED, "PRF_UNDEFINED"}, +{PRF_HMAC_MD5, "PRF_HMAC_MD5"}, +{PRF_HMAC_SHA1, "PRF_HMAC_SHA1"}, +{PRF_HMAC_TIGER, "PRF_HMAC_TIGER"}, +{PRF_AES128_CBC, "PRF_AES128_CBC"}, +{MAPPING_END, NULL} +}; + + /* * Described in header */ |