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
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
Instead of using an explicit mutable context, and using IO, one can also hide everything in this Monad. I doubt this is better in all cases, but it might be more convenient in some. ekmett/bytes#25
The text was updated successfully, but these errors were encountered:
bytes doesn't support any of the ByteArrayAccess / ByteArray classes (from memory). Also in some places I need to have exact control on how things are represented/copied for security reason, for example HMAC where the hash need to be done in a specific fashion so as not to have additional copy of your key in memory.
There is no HashAlgorithm a => HashAlgorithm (HMAC a) instance, so I am less concerned, but what exactly is the problem here? I'd assume a similarly constructed HMACMonad would have to be eliminated with a key, something like:
Instead of using an explicit mutable context, and using IO, one can also hide everything in this Monad. I doubt this is better in all cases, but it might be more convenient in some. ekmett/bytes#25
The text was updated successfully, but these errors were encountered: