3 ms·
Relevant comment from Werner Koch: https://twitter.com/FiloSottile/status/996011473112576000 https://twitter.com/FiloSottile/status/996011473112576000 Either G
by sp332 9y ago
Relevant comment from Werner Koch: https://twitter.com/FiloSottile/status/996011473112576000 https://twitter.com/FiloSottile/status/996011473112576000
Either GPG buffers the data and checks for DECRYPTION_FAILED, or the application depending on GPG does. Of the two options, it makes much more sense for GPG to handle this.
- tptacek 9y agoThis is shades of the curl maintainer rationalizing CURL_SSL_VERIFYHOST=1 not doing any checking, because CURL_SSL_VERIFYHOST=2 does.
- jwildeboer 9y agoDECRYPTION_FAILED should always result with an empty return. Not with the decrypted content.
- slrz 9y agoThe application is likely better equipped to do something reasonable if temporarily storing lots of data is in order. Still, GnuPG could do the buffering automatically for small messages and force explicit configuration otherwise. The latter might not be realistically enforcable given the compatibility constraints.