tel / saltine

Cryptography that's easy to digest (NaCl/libsodium bindings)
https://github.com/tel/saltine
MIT License
61 stars 29 forks source link

Streaming, ByteArray or conduit interface for large payloads #45

Open hce opened 6 years ago

hce commented 6 years ago

Currently only strict ByteStrings are supported. For large payloads, a conduit interface would be awesome. Alternatives include lazy ByteStrings (which are somewhat deprecated afaict) or the more generic ByteArray(Access) interface that supports various sources of bytes.

hce commented 6 years ago

Also, It'd be nice to have lazy bytestrings instead of strict ones for the stream and xor functions at https://hackage.haskell.org/package/saltine-0.1.0.0/docs/Crypto-Saltine-Core-Stream.html#v:stream =)

linearray commented 3 years ago

Currently only strict ByteStrings are supported. For large payloads, a conduit interface would be awesome. Alternatives include lazy ByteStrings (which are somewhat deprecated afaict) or the more generic ByteArray(Access) interface that supports various sources of bytes.

Can you elaborate and explain in which modules or functions you would primarily want to use that?