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

Related to: 
- https://github.com/phpseclib/phpseclib/issues/77
- https://github.com/phpseclib/phpseclib/commit/5f64ab67abe1cb4354b07d636039964c3d63522b