]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/commit
MFC r239169:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 21 Aug 2012 09:05:23 +0000 (09:05 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 21 Aug 2012 09:05:23 +0000 (09:05 +0000)
commit22e34a25b4b3484903f87945e0a4fef4a33416f7
tree0917f79c8e45c01551dddd95d176ad7bbb1e9bbb
parentb1f9e71cbdaab68c61b81df7d1eff2edd1717c5d
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)
Approved by: re (kib)

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