Commit Graph

16 Commits (master)

Author SHA1 Message Date
John Benediktsson 1b54f0a434 checksums: make checksum-state implement dispose. 2016-08-01 15:46:30 -07:00
John Benediktsson 83a7592a86 checksums: making "checksum-state" a universal concept.
I'm not super happy with the design yet, partly because OpenSSL doesn't
subclass ``checksum-state`` so all ``initialize-checksum-state`` will not
return a ``checksum-state`` instance.  That could maybe be changed by making
``checksum-state`` a mixin, or perhaps some other way.
2016-07-30 09:31:10 -07:00
Doug Coleman f7e2f3af79 checksums.common: don't need next-level anymore thanks to cleanup. 2016-07-10 11:40:16 -05:00
John Benediktsson 6b9d6c00c0 checksums.common: simplify add-checksum-bytes. 2016-07-09 20:58:14 -07:00
Doug Coleman 217b7f2b0c checksums: Ugly fix for incremental checksums. Add randomized unit tests to ensure that varying length payloads are the same incrementally or all at once. 2016-07-09 16:59:15 -05:00
Doug Coleman d6d4e0e903 checksums: Really fix... only add the number of extra bytes in the last unchecksummed block. 2016-07-09 14:17:59 -05:00
Doug Coleman 2c5a2e9600 checksums.common: Checksums was calculating the new length based on the entire array, not on the number of recently added bytes.
Reported by Александр Ilin.
2016-07-09 13:53:30 -05:00
John Benediktsson 2255d6d876 checksums: some cleanup.
- define checksum-bytes and checksum-stream in terms of each other
- delete stream-checksum now that it's no longer needed
- move checksum-state stuff into checksums.common
- add a block-checksum that uses the checksum-state stuff
- change checksums.openssl to not use the checksum-state
2016-06-30 12:30:58 -07:00
John Benediktsson b6367aba06 checksums.common: some cleanup, remove unused stuff. 2016-06-30 12:30:58 -07:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman b4108c21f0 working on sha2 2009-05-10 12:18:59 -05:00
Doug Coleman c0a3ef631a implementing sha2 512 2009-05-08 19:00:06 -05:00
Doug Coleman be5a099379 refactor some weirdness in checksums.common 2008-12-17 01:40:09 -06:00
Slava Pestov 498761376a Cleanup 2008-11-26 04:25:18 -06:00
Slava Pestov cf80dd122a Updating code for make and fry changes 2008-09-10 22:11:40 -05:00
Slava Pestov aea0fed14c Fixing basis -> extra dependencies 2008-09-05 19:29:14 -05:00