]> CyberLeo.Net >> Repos - FreeBSD/stable/9.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)
commitd9c70eb1079f7aa278e3b7a42a91104357ea521f
treec914f24a5d6515091adaabd4e5c4621a6d749311
parentfa610c1d802c66fcd584c75b3e77f175da0b52a8
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/9@239459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/opie/libopie/hash.c
contrib/opie/libopie/hashlen.c