- bug in creating fixed
authorJan Hutter <jhutter@hsr.ch>
Wed, 23 Nov 2005 07:17:12 +0000 (07:17 -0000)
committerJan Hutter <jhutter@hsr.ch>
Wed, 23 Nov 2005 07:17:12 +0000 (07:17 -0000)
Source/charon/transforms/prfs/prf_hmac.c

index 3ebe45d..b16554e 100644 (file)
@@ -101,7 +101,7 @@ prf_hmac_t *prf_hmac_create(hash_algorithm_t hash_algorithm)
        this->public.prf_interface.set_key = (status_t (*) (prf_t *,chunk_t))set_key;
        this->public.prf_interface.destroy = (status_t (*) (prf_t *))destroy;
        
-       this->hmac = hmac_create(HASH_SHA1);
+       this->hmac = hmac_create(hash_algorithm);
        if (this->hmac == NULL)
        {
                allocator_free(this);