Added support for AUTH_HMAC_SHA2_256_256, used in TLS

This commit is contained in:
Martin Willi
2010-08-03 15:39:24 +02:00
parent 4c0c2283a5
commit 9dc73cd21c
3 changed files with 9 additions and 3 deletions
@@ -177,6 +177,9 @@ hmac_signer_t *hmac_signer_create(integrity_algorithm_t algo)
hash = HASH_SHA512;
trunc = 32;
break;
case AUTH_HMAC_SHA2_256_256:
hash = HASH_SHA256;
trunc = 32;
default:
return NULL;
}