Research Article

Preimage Selective Trapdoor Function: How to Repair an Easy Problem

Algorithm 2

Generating and .
(1) For , randomly choose
with repetition permitted.
(2) Randomly choose numbers and
and set such that
for , and
for .
(3) for     do
(4)      ,   .   (★)
(5) end for
(6) return   , .