[PATCH 5.16 0059/1017] KEYS: asymmetric: properly validate hash_algo and encoding