progs/key.c: Support applying parameters in all key-generation algorithms.