projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure EVP_MAC_update() passes the length even if it is 0
[openssl.git]
/
providers
/
implementations
/
macs
/
siphash_prov.c
diff --git
a/providers/implementations/macs/siphash_prov.c
b/providers/implementations/macs/siphash_prov.c
index 8797241e33b6af3e0e379edee956db7e44958460..1bea7a2787773aa2dcbc0a276c6e2e97df4da8a1 100644
(file)
--- a/
providers/implementations/macs/siphash_prov.c
+++ b/
providers/implementations/macs/siphash_prov.c
@@
-91,6
+91,9
@@
static int siphash_update(void *vmacctx, const unsigned char *data,
{
struct siphash_data_st *ctx = vmacctx;
+ if (datalen == 0)
+ return 1;
+
SipHash_Update(&ctx->siphash, data, datalen);
return 1;
}