- removed key from constructor

- added set_key
This commit is contained in:
Martin Willi committed 2005-11-22 07:59:00 +00:00
1 parent 4aab514953
commit 002c583e26
4 files changed
+13 -7

No files matched your search

+2 -2
View File
@@ -29,13 +29,13 @@
/*
* Described in header
*/
prf_t *prf_create(pseudo_random_function_t pseudo_random_function, chunk_t key)
prf_t *prf_create(pseudo_random_function_t pseudo_random_function)
{
switch (pseudo_random_function)
{
case PRF_HMAC_SHA1:
{
return (prf_t*)prf_hmac_sha1_create(key);
return (prf_t*)prf_hmac_sha1_create();
}
case PRF_HMAC_MD5:
case PRF_HMAC_TIGER: