Subject: | Streaming is impossible |
Unfortunately 'decrypt' must have the tag in place before starting to decrypt and assumes all
data will come at once.
It would be nice if I could do:
Crypt::GCM->new( -streaming => 1, ... );
and have ->decrypt calculate a ->tag just like encrypt does, which I would then compare at the
end.
This lets me encrypt in a stream, then signal send the tag, and on the other end decrypt the
stream, and validate that the $cipher->tag is eq to the $sent_tag