- removed key from constructor

- added set_key method
This commit is contained in:
Martin Willi
2005-11-22 09:27:41 +00:00
parent 722000481b
commit a217b51d6d
3 changed files with 49 additions and 32 deletions
+2 -1
View File
@@ -169,7 +169,8 @@ void test_hmac_sha1(tester_t *tester)
for (i=0; i<3; i++)
{
hmac_t *hmac = hmac_create(HASH_SHA1, keys[i]);
hmac_t *hmac = hmac_create(HASH_SHA1);
hmac->set_key(hmac, keys[i]);
hmac->allocate_mac(hmac, data[i], &digest[i]);
hmac->destroy(hmac);