From 4a7d2ae0b1dc631cc305380784c141596750bd41 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 27 Feb 2007 19:34:54 +0000 Subject: sha2 hashes are not 5 32-bit ints in size. Just leave out the size in ints since there are multiple flavors. The key point to get across is that when storing as a type > byte it may be necessary to do byte swapping depending on the machine's byte order. Noticed by Tamas TEVESZ. --- lib/libc/hash/sha2.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/hash') diff --git a/lib/libc/hash/sha2.3 b/lib/libc/hash/sha2.3 index 0533b17b75e..9a518f763d5 100644 --- a/lib/libc/hash/sha2.3 +++ b/lib/libc/hash/sha2.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sha2.3,v 1.12 2005/09/12 10:33:29 jmc Exp $ +.\" $OpenBSD: sha2.3,v 1.13 2007/02/27 19:34:53 millert Exp $ .\" .\" Copyright (c) 2003, 2004 Todd C. Miller .\" @@ -277,6 +277,6 @@ This implementation of the Secure Hash Standard has not been validated by NIST and as such is not in official compliance with the standard. .Pp If a message digest is to be copied to a multi-byte type (i.e.\& -an array of five 32-bit integers) it will be necessary to +an array of 32-bit integers) it will be necessary to perform byte swapping on little endian machines such as the i386, alpha, and vax. -- cgit v1.2.3