

def POUF_blind(params, messages):
    'Blind the messages input to the POUF'
    (G, g, o) = params
    hi = [G.hash_to_point(m) for m in messages]
    ai = [o.random() for _ in g]
    yi = [(a * h) for (a, h) in zip(ai, hi)]
    return (ai, yi)

dataset/ETHPy150Open gdanezis/petlib/examples/pouf.py POUF_blind/VarMisuse@50/73 `messages`->`g`