IPSEC: Fix catch-22 with algorithm IDs above 31