'We used to map key types to cryptography key objects.'

def getPrivateKeys(self):

    keys = MockFactory.getPrivateKeys(self)
    for (name, key) in keys.items()[:]:
        keys[name] = key.keyObject
    return keys
