[PATCH 5.17 0048/1126] KEYS: asymmetric: properly validate hash_algo and encoding