Sanity check for key generation input.