Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1393 closed enhancement (fixed)

Feature request for message-digest

Reported by: LemonBoy Owned by: Kon Lovett
Priority: major Milestone: someday
Component: extensions Version:
Keywords: Cc: Kon Lovett
Estimated difficulty:


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!

Change History (2)

comment:1 Changed 7 years ago by Kon Lovett

Resolution: fixed
Status: newclosed

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.

comment:2 Changed 7 years ago by Kon Lovett

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.

Note: See TracTickets for help on using tickets.