

def test_mac():
    params = POUF_setup()
    k = POUF_keyGen(params)
    (ai, yi) = POUF_blind(params, [b'1', b'2'])
    zi = POUF_mac(params, k, yi)
    assert (len(zi) == len(ai))

dataset/ETHPy150Open gdanezis/petlib/examples/pouf.py test_mac/original