Utility methods for pycrypto