]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r239169:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Aug 2012 18:26:16 +0000 (18:26 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Aug 2012 18:26:16 +0000 (18:26 +0000)
commitb889b64d609a936d93b36cea9ecf289b77194b8c
tree9782df7c8dbc0d55b98fb3845e3a5ddc0bed7ce7
parent6f9660745026000abf04083f9bf99332b3b977fd
MFC r239169:

RFC 2289 requires all hashes be stored in little endian format before
folding to 64 bits, while SHA1 code is big endian.  Therefore, a bswap32
is required before using the value.

Without this change, the implementation does not conform to test vector
found in RFC 2289.

PR: bin/170519
Submitted by: Arthur Mesh <arthurmesh gmail com> (with changes)

git-svn-id: svn://svn.freebsd.org/base/stable/8@239459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/opie/libopie/hash.c
contrib/opie/libopie/hashlen.c