ietf-openpgp
[Top] [All Lists]

Re: [openpgp] AEAD Chunk Size

2019-03-18 07:40:23

Not rejecting your idea outright, just curious how it would work with
e.g. instant messengers where there is streaming of irregularly-sized
packets coming at irregular intervals (and the users would expect that
Things Just Work(tm) for both two-character messages and five-megabyte
files sent over the wire).

I would expect the interface to use non-chunked mode for a simple "buffer in,
buffer out" interface ("secret box"), and chunked mode ("secret stream") for
streamed data.  In your example, a messenger would probably encrypt text
messages by passing an entire buffer, while images or larger data could be
streamed.

This is a useful distinction to have in general, streaming APIs are much harder
to use correctly than simple buffered ones. See also libsodium.

 - V

_______________________________________________
openpgp mailing list
openpgp(_at_)ietf(_dot_)org
https://www.ietf.org/mailman/listinfo/openpgp

<Prev in Thread] Current Thread [Next in Thread>