You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Some consumers only want first n bytes after calling digest() and they have to use this pattern: digest(something).slice(0, n), note that Uint8Array.slice() returns a copy of the array so it's not efficient
Describe the solution you'd like
Add an optional totalLength parameter to digest() methods so it requires only 1 memory allocation
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Some consumers only want first n bytes after calling
digest()
and they have to use this pattern:digest(something).slice(0, n)
, note thatUint8Array.slice()
returns a copy of the array so it's not efficientDescribe the solution you'd like
Add an optional
totalLength
parameter todigest()
methods so it requires only 1 memory allocationThe text was updated successfully, but these errors were encountered: