Open kirelagin opened 4 years ago
Probably, do #10 first.
See Crypto.Mac.Lazy
, Crypto.Mac.Stream
, and crypto-sodium-streamly
.
I think we should restrict the scope of this issue to multi-part messages as implemented in Libsodium, i.e. we lazily consume a message and produce a signature.
Streaming signed data should be a separate concept, which is not implemented in Libsodium, and we should do something like the Saltpack’s format and/or Sodium’s encrypted stream format.
Probably won’t happen (see https://github.com/serokell/haskell-crypto/issues/17#issuecomment-709686119).
https://libsodium.gitbook.io/doc/public-key_cryptography/public-key_signatures#example-multi-part-message
ByteString
?ListT
?