Commit Graph

29 Commits (dadff2f062dbb72e66eab24cc6e155b6f56fdff2)

Author SHA1 Message Date
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
John Benediktsson 9667ae962e checksums.sha: speedup, still more to do. 2016-07-11 19:51:28 -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 8d61ace2b4 checksums: fix test using. 2016-06-30 14:47:18 -07: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
Doug Coleman 391f8e433f basis: Cleaning up tests using lists and IN: forms. 2016-03-30 20:04:14 -07:00
John Benediktsson 0d2859124e checksums: remove hex-string in favor of math.parser:bytes>hex-string. 2016-03-21 21:06:22 -07:00
John Benediktsson 4cf54117ee checksums.sha: benchmark.sha1 is 15% faster. 2015-07-15 16:54:59 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson 2bac4a9695 checksums.sha: remove trailing whitespace. 2015-06-06 09:28:01 -07:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
John Benediktsson 04a4e0ed5c checksums.sha: minor speedup. 2014-03-04 10:05:03 -08:00
John Benediktsson c3f79c1482 checksums.sha: more types, faster. 2014-02-17 18:26:17 -08:00
Doug Coleman f9ea61bf91 basis/extra: Update last usages of <sliced-groups> to <groups>. 2013-03-23 12:08:18 -07:00
John Benediktsson 5c76cbb421 rename some words to x>sequence and sequence>x. 2012-07-23 21:28:38 -07:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Slava Pestov ea726f5680 Move remaining sequence operations from generalizations to sequences.generalizations where they belong 2010-05-18 18:36:47 -04:00
Slava Pestov 627295f094 Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO) 2010-05-06 17:21:02 -04:00
Slava Pestov df4fb4a3ee Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman 785c341c9b 50% speedup using unsafe nth/set-nth/exchange in checksums.sha 2009-06-21 00:58:36 -05:00
Doug Coleman 70020d59bd add some unit tests testing get-checksum 2009-05-17 18:41:15 -05:00
Doug Coleman b352bbdc12 move sha1 and sha2 to checksums.sha, update usages 2009-05-17 17:58:36 -05:00