KEYS: checking the input id parameters before finding asymmetric key