Added support for a non-truncated SHA384 HMAC variant, as used by TLS

This commit is contained in:
Martin Willi
2010-09-03 14:54:43 +02:00
parent 4cdade5aae
commit 033fe95f0b
3 changed files with 9 additions and 1 deletions
@@ -162,6 +162,11 @@ hmac_signer_t *hmac_signer_create(integrity_algorithm_t algo)
case AUTH_HMAC_SHA2_256_256:
hmac = hmac_create(HASH_SHA256);
trunc = 32;
break;
case AUTH_HMAC_SHA2_384_384:
hmac = hmac_create(HASH_SHA384);
trunc = 48;
break;
default:
return NULL;
}