Skip Menu |

This queue is for tickets about the Crypt-GCM CPAN distribution.

Report information
The Basics
Id: 50691
Status: open
Priority: 0/
Queue: Crypt-GCM

People
Owner: Nobody in particular
Requestors: NUFFIN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
of course, repeated invocations of encrypt/decrypt would resume with the current value of the tag, instead of overwriting it.