Opened 4 weeks ago

Closed 4 weeks ago

Last modified 4 weeks ago

#1393 closed enhancement (fixed)

Feature request for message-digest

Reported by: LemonBoy Owned by: kon
Priority: major Milestone: someday
Component: extensions Version:
Keywords: Cc: kon
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 4 weeks ago by kon

  • Resolution set to fixed
  • Status changed from new to closed

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 4 weeks ago by kon

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.