- removed key from constructor

- added set_key method
This commit is contained in:
Martin Willi committed 2005-11-22 09:27:41 +00:00
1 parent 722000481b
commit a217b51d6d
3 files changed
+49 -32

No files matched your search

+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);