Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/external/bsd/bind/dist/lib/isc Fix bug in sha384 checksum...
details: https://anonhg.NetBSD.org/src/rev/009a51b4bd65
branches: netbsd-7
changeset: 932380:009a51b4bd65
user: sborrill <sborrill%NetBSD.org@localhost>
date: Wed May 06 07:40:17 2020 +0000
description:
Fix bug in sha384 checksum computation introduced when converting the code
to avoid alignment issues.
diffstat:
external/bsd/bind/dist/lib/isc/sha2.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r cf48656e53f2 -r 009a51b4bd65 external/bsd/bind/dist/lib/isc/sha2.c
--- a/external/bsd/bind/dist/lib/isc/sha2.c Thu Apr 30 16:23:32 2020 +0000
+++ b/external/bsd/bind/dist/lib/isc/sha2.c Wed May 06 07:40:17 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sha2.c,v 1.8.2.2 2017/06/20 17:09:53 snj Exp $ */
+/* $NetBSD: sha2.c,v 1.8.2.3 2020/05/06 07:40:17 sborrill Exp $ */
/*
* Copyright (C) 2005-2007, 2009, 2011, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
@@ -1503,6 +1503,8 @@
*context->buffer = 0x80;
}
/* Store the length of input data (in bits): */
+ memcpy(&context->buffer[ISC_SHA512_SHORT_BLOCK_LENGTH],
+ &context->bitcount[1], sizeof(isc_uint64_t));
memcpy(&context->buffer[ISC_SHA512_SHORT_BLOCK_LENGTH+8],
&context->bitcount[0], sizeof(isc_uint64_t));
Home |
Main Index |
Thread Index |
Old Index