crypto: bails out early for unsupported key type