RT3095: allow NULL key for single-shot HMAC
authorEmilia Kasper <emilia@openssl.org>
Thu, 10 Sep 2015 13:17:58 +0000 (15:17 +0200)
committerEmilia Kasper <emilia@openssl.org>
Thu, 4 Feb 2016 12:01:32 +0000 (13:01 +0100)
commitb1413d9bd9d2222823ca1ba2d6cdf4849e635231
treef2cd0c6ec261a85658a27eefe40f2def6522f0ed
parentbdb7a621ac0a1d10d3c915e2283feebc1e43564a
RT3095: allow NULL key for single-shot HMAC

In HMAC_Init_ex, NULL key signals reuse, but in single-shot HMAC,
we can allow it to signal an empty key for convenience.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
crypto/hmac/hmac.c
test/hmactest.c