summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-03-17 14:29:17 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-03-17 14:29:17 +0100
commit03901766c7f452c637ac57ec526b98895da510d5 (patch)
tree8d8a8bb0121c8353e5f8550262640756f6e6e547 /runtime/librsgt.c
parentd2467c38d42f590deecd807741324fc0e5522a8a (diff)
downloadrsyslog-03901766c7f452c637ac57ec526b98895da510d5.tar.gz
rsyslog-03901766c7f452c637ac57ec526b98895da510d5.tar.bz2
rsyslog-03901766c7f452c637ac57ec526b98895da510d5.zip
logsig: milestone/verfier: tree hashes are verified; ALSO a bugfix
bugfix: the initial vector was used incorrectly during hash computation.
Diffstat (limited to 'runtime/librsgt.c')
-rw-r--r--runtime/librsgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/librsgt.c b/runtime/librsgt.c
index e49011f4..92b0d412 100644
--- a/runtime/librsgt.c
+++ b/runtime/librsgt.c
@@ -483,7 +483,7 @@ sigblkInit(gtfile gf)
static inline void
bufAddIV(gtfile gf, uchar *buf, size_t *len)
{
- memcpy(buf+*len, &gf->IV, sizeof(gf->IV));
+ memcpy(buf+*len, gf->IV, hashOutputLengthOctets(gf->hashAlg));
*len += sizeof(gf->IV);
}