added support for AUTH_HMAC_SHA1_160

This commit is contained in:
Andreas Steffen
2009-05-04 23:01:40 +02:00
parent cae1ded1dc
commit 8c45f0f102
3 changed files with 11 additions and 4 deletions
@@ -153,6 +153,10 @@ hmac_signer_t *hmac_signer_create(integrity_algorithm_t algo)
hash = HASH_SHA1;
trunc = 16;
break;
case AUTH_HMAC_SHA1_160:
hash = HASH_SHA1;
trunc = 20;
break;
case AUTH_HMAC_MD5_96:
hash = HASH_MD5;
trunc = 12;