Fixed calculating the size of the crypto->inbuf when encrypting.