[Botan-devel] Computing total length for enc / dec
lloyd at randombit.net
Mon Jun 28 15:29:04 EDT 2010
On Mon, Jun 28, 2010 at 08:54:21AM -0400, Jack Lloyd wrote:
> So I think you are stuck with manually computing the length. EAX
> itself is not going to change; it's externally specified. My only
> suggestion here would perhaps be to verify at the end that you
> actually read out exactly as many bytes as you had previously
> expected, which would catch any discrepency quickly.
Oh: I guess the other suggestion would be to packetize the ciphertext,
and prefix a length field before each packet.
Here's 4096 bytes ...
Here's another 4096 bytes ...
Here's 404 bytes, I'm done now
More information about the botan-devel