'Check for public and private keys.'

def startFactory(self):

    if (not hasattr(self, 'publicKeys')):
        self.publicKeys = self.getPublicKeys()
    if (not hasattr(self, 'privateKeys')):
        self.privateKeys = self.getPrivateKeys()
    if ((not self.publicKeys) or (not self.privateKeys)):
        raise error.ConchError('no    host    keys,    failing')
    if (not hasattr(self, 'primes')):
        self.primes = self.getPrimes()
