diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-22 15:33:08 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-22 15:33:08 +0000 |
commit | 74ced9e2491fd4b1b9fe3c31008d0afb283b20f5 (patch) | |
tree | 108cb5c1fc0f2e9ef3d6104b8101bd97eb172b7c /Source/charon/transforms/prfs/prf.c | |
parent | c4253ff5ccdcd70dd429db8a5f4f47b518672eb0 (diff) | |
download | strongswan-74ced9e2491fd4b1b9fe3c31008d0afb283b20f5.tar.bz2 strongswan-74ced9e2491fd4b1b9fe3c31008d0afb283b20f5.tar.xz |
- prf_hmac_sha1 is now a generig prf_hmac
- supports md5
Diffstat (limited to 'Source/charon/transforms/prfs/prf.c')
-rw-r--r-- | Source/charon/transforms/prfs/prf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/charon/transforms/prfs/prf.c b/Source/charon/transforms/prfs/prf.c index 200286437..e52c33181 100644 --- a/Source/charon/transforms/prfs/prf.c +++ b/Source/charon/transforms/prfs/prf.c @@ -23,7 +23,8 @@ #include "prf.h" -#include "prf_hmac_sha1.h" +#include "prf_hmac.h" +#include "../hashers/hasher.h" /* @@ -35,9 +36,12 @@ prf_t *prf_create(pseudo_random_function_t pseudo_random_function) { case PRF_HMAC_SHA1: { - return (prf_t*)prf_hmac_sha1_create(); + return (prf_t*)prf_hmac_create(HASH_SHA1); } case PRF_HMAC_MD5: + { + return (prf_t*)prf_hmac_create(HASH_MD5); + } case PRF_HMAC_TIGER: case PRF_AES128_CBC: default: |