catcrypt.c, catsign.c: Shorten chunk sizes.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 22 Jan 2012 13:12:14 +0000 (13:12 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 22 Jan 2012 13:12:14 +0000 (13:12 +0000)
commitf52f2db067dc1388b16ab00ddb53e26a381a6e3e
treead4fc8b78212f9e72e7212cc24fd5f40a09e5dcf
parent8cd9f01dac408893755906282d79284c1ee7ddd6
catcrypt.c, catsign.c: Shorten chunk sizes.

The chunks are written with a 16-bit length, so the maximum chunk size
is 2^16 - 1 = 65535.  Unfortunately, catsign tried to write 65536-byte
chunks, and catcrypt tried to cram a MAC tag in there too.  The result
is that chunk_write fails an assertion because the chunks are too big.

No idea why this ever worked before.
catcrypt.c
catsign.c