Browse Source

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.
OPENBSD_4_1
millert 17 years ago
parent
commit
260e7b6d66
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libc/hash/sha2.3

+ 2
- 2
src/lib/libc/hash/sha2.3 View File

@ -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 <Todd.Miller@courtesan.com>
.\"
@ -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.

Loading…
Cancel
Save