Summary
Feature request for message-digest
Metadata
- Id: 84f8e896619e6147199668de4367ec1abecfc979
- Trac id: 1393
- Type: enhancement
- Reporter: LemonBoy
- Owner: kon
- Cc: kon
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: someday
- Version:
- Changetime: 2017-08-28 01:38:27 UTC
- Created: 2017-08-27 00:21:38 UTC
- Keywords:
Description
Just a small feature request: having a `finalize-message-digest!` procedure to finalize the digest into a user-supplied blob/string/vector would be very nice.
Moreover having a non-deprecated way to update a digest with only a subset of a blob/string would be also nice: while you can easily slice a string using substring (you do pay the price of a new allocation though) you can't do so with blobs.
Thank you for your work, `message-digest` is a nice piece of software!
Changes and comments
[2017-08-27 01:36:40 UTC] kon changed status from new to closed
[2017-08-27 01:36:40 UTC] kon set resolution to fixed
[2017-08-27 01:36:40 UTC] kon wrote:
added (finalize-message-digest! digest buffer) to rel 3.5.0, buffer is blob/string/u8vector.
not exactly what is wanted but what is possible ;-)
adding slices as source, and destination (as above), is a difficult fit in the current code.
[2017-08-28 01:38:27 UTC] kon wrote:
3.7.0: added ! versions for all result-form calls. added [start end) range optional arguments to all blob/string/u8vector/object calls.
adding a START argument to the update phase procedure is a breaking change, at least w/o a shim procedure. and needs every *-primitive modified to recognize the offset.