abort if cipher method is unsupported.