Helper functions for implementing BlockCipher for Blowfish.