[sudo-commits] sudo changeset 14458:4b6a50800ecd

Todd C. Miller Todd.Miller at sudo.ws
Mon Jan 9 14:38:38 MST 2023


changeset:	14458:4b6a50800ecd in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/4b6a50800ecd
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon Jan 09 14:37:47 2023 -0700

Log Message:
	In SHA256Pad and SHA512Pad use 511 and 1023 respectively for bitwise AND.
	Previously we were using 504 and 1016 which still produces the
	correct result since padding is done in 8-bit bytes.  However, using
	size-1 for the bitwise AND makes the intent clearer and likely would
	have prevented the previous bug in SHA512Pad.
	From Matthieu Barjole and Victor Cutillas of Synacktiv (https://synacktiv.com)

diffstat:

 lib/util/sha2.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)



More information about the sudo-commits mailing list