def get_raw_ambkh_key(self, other_pubkey):
    ambkh_keybuffer = ctypes.create_string_buffer(32)
    r = ssl.AMBKH_compute_key(ctypes.pointer(ambkh_keybuffer), 32, ssl.EC_KEY_get0_public_key(other_pubkey.k), self.k, 0)
    if (r != 32):
        raise Exception('CKey.get_ambkh_key(): AMBKH_compute_key() failed')
    return ambkh_keybuffer.raw
def get_raw_ambkh_key(self, other_pubkey):
    ambkh_keybuffer = ctypes.create_string_buffer(32)
    r = ssl.AMBKH_compute_key(ctypes.pointer(ambkh_keybuffer), 32, ssl.EC_KEY_get0_public_key(other_pubkey.k), self.k, 0)
    if (r != 32):
        raise Exception('CKey.get_ambkh_key(): AMBKH_compute_key() failed')
    return ambkh_keybuffer.raw