def get_hash_method(hash_method_name):
 if (hash_method_name not in HASH_METHODS):
  raise exception.SignatureVerificationError(reason=(_('Invalid signature hash method: %s') % hash_method_name))
 return HASH_METHODS[hash_method_name]

def get_hash_method ( hash_method_name ) : if ( hash_method_name not in HASH_METHODS ) : raise exception . SignatureVerificationError ( reason = ( _ ( 'Invalid signature hash method: %s' ) % hash_method_name ) ) return HASH_METHODS [ hash_method_name ]
verify the hash method name and create the hash method .