def createKeyPair(type, bits):
 pkey = crypto.PKey()
 pkey.generate_key(type, bits)
 return pkey

def createKeyPair ( type , bits ) : pkey = crypto . PKey ( ) pkey . generate_key ( type , bits ) return pkey
create a public/private key pair .