[Triple]DES, Rijndael: Fix overflow in OFB mode

Related to: https://github.com/phpseclib/phpseclib/issues/77