Method: Crypt::Blowfish#decrypt_pair
- Defined in:
- lib/external/crypt/blowfish.rb
#decrypt_pair(xl, xr) ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/external/crypt/blowfish.rb', line 81 def decrypt_pair(xl, xr) 17.downto(2) { |i| xl = (xl ^ @pArray[i]) % ULONG xr = (xr ^ f(xl)) % ULONG xl, xr = [xl, xr].reverse } xl, xr = [xl, xr].reverse xr = (xr ^ @pArray[1]) % ULONG xl = (xl ^ @pArray[0]) % ULONG return([xl, xr]) end |