Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-3-1] src



Module Name:    src
Committed By:   ghen
Date:           Tue Aug 28 13:33:04 UTC 2007

Modified Files:
        src/lib/libc/hash/sha2 [netbsd-3-1]: sha2.c
        src/sys/crypto/ripemd160 [netbsd-3-1]: rmd160.c
        src/sys/crypto/sha2 [netbsd-3-1]: sha2.c

Log Message:
Pull up patches (requested by joerg in ticket #1812):
        lib/libc/hash/sha2/sha2.c: patch
        sys/crypto/ripemd160/rmd160.c: patch
        sys/crypto/sha2/sha2.c: patch
Fix SIGBUS issues on strict alignment issues. Use le32dec in RMD160
as the data pointer to RMD160_Update doesn't have to be aligned.
In SHA256_Update and SHA512_Update, only operate directly on the passed
in data if no left-over in the context exists and the data is correctly
aligned. The problem was exposed by the audit-packages rewrite in C
and reported for the libnbcompat version in PR pkg/36662.
cast to void* to avoid a fatal warning


To generate a diff of this commit:
cvs rdiff -r1.3.2.1 -r1.3.2.1.4.1 src/lib/libc/hash/sha2/sha2.c
cvs rdiff -r1.3 -r1.3.22.1 src/sys/crypto/ripemd160/rmd160.c
cvs rdiff -r1.3.2.2 -r1.3.2.2.4.1 src/sys/crypto/sha2/sha2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index