Check if key supports algorithm.