cryptnet: Store the bytes actually read, not the bytes available to be read.