diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-22 09:27:41 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-22 09:27:41 +0000 |
commit | a217b51d6d4d036c3488fec0fa47991964679fd3 (patch) | |
tree | 37386c2d3cf9c1b3298eee8dce56329c8038821b /Source/charon/testcases/hmac_test.c | |
parent | 722000481bbb924dd5155ddbbad05bf4769b2703 (diff) | |
download | strongswan-a217b51d6d4d036c3488fec0fa47991964679fd3.tar.bz2 strongswan-a217b51d6d4d036c3488fec0fa47991964679fd3.tar.xz |
- removed key from constructor
- added set_key method
Diffstat (limited to 'Source/charon/testcases/hmac_test.c')
-rw-r--r-- | Source/charon/testcases/hmac_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/charon/testcases/hmac_test.c b/Source/charon/testcases/hmac_test.c index 4a36dcb9c..ccefb86cf 100644 --- a/Source/charon/testcases/hmac_test.c +++ b/Source/charon/testcases/hmac_test.c @@ -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); |