aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd/i386
Commit message (Collapse)AuthorAgeFilesLines
* Use unsigned comparisons. Prior to this commit, SHA1_Update andColin Percival2007-05-142-2/+4
| | | | | | | | | | | | | | | | | | | | | | RIPEMD160_Update were broken when all of the following conditions applied: (1) The platform is i386. (2) The program calling *_Update is statically linked to libmd. (3) The buffer provided to *_Update is aligned modulo 4 bytes. (4) The buffer extends beyond 2GB. Due to the design of this code, SHA1_Update and RIPEMD160_Update will still be broken if conditions (1)-(3) apply AND the buffer extends beyond 4GB (i.e., there is an integer overflow in computing "data + len"). Since this remaining bug simply replaces SIGSEGV with a bogus hash (and non-broken programs should never provide such operands) I don't consider it to be a serious problem. MFC After: 1 week PR: kern/102795 Notes: svn path=/head/; revision=169547
* fix for incorrect specification of alignment (it worked for the elfChuck Robey1999-02-282-4/+4
| | | | | | | | | | | build, but broke while doing the aout legacy build). Now using .p2align instead of .align. Fixes broken buildworld. Submitted by: John Polstra Reviewed by: John Polstra Notes: svn path=/head/; revision=44332
* Don't build the assembly for shared linkage, PIC isn't implemented.Garrett Wollman1999-02-261-0/+2
| | | | Notes: svn path=/head/; revision=44302
* Add Eric Young's RIPEMD160 implementation as well, in case SHA-1Garrett Wollman1999-02-261-0/+2016
| | | | | | | should prove weak. Also fix a few problems with the SHA-1 build. Notes: svn path=/head/; revision=44301
* Fix bug in MDx test suite.Garrett Wollman1999-02-261-0/+1951
Add Eric Young's SHA-[01] implementations. Notes: svn path=/head/; revision=44290