by aepiepaey · 8y ago · 0 comments
¹: where GPG does the right thing
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.
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.
Unfortunately this is not supported by the PGP spec, or any other well established spec.
Once the MDC clears, you can just decrypt again, this time writing to stdout.