

def digest(data):
    buf = create_string_buffer(32)
    helper = ctypes_utils.get_helper('sha256_nonstandard')
    func = helper.sha256ns_digest
    func.argtypes = (c_void_p, c_int, c_void_p)
    func.restype = c_int
    func(data, len(data), buf)
    return buf.raw

dataset/ETHPy150Open sassoftware/conary/conary/lib/ext/sha256_nonstandard.py digest/original