Question: A company suggests the following hash function: Let p > = 3 be a large prime with respect to which the discrete logarithm problem is
A company suggests the following hash function: Let p be a large prime with respect to which the discrete logarithm problem is intractable in p Let g g in p be two distinct generators of p Define H : ptimes pp as Hx xgx gx p The company claims that this hash function is collisionresistant. Prove that they are wrong. Namely, present an algorithm C that given any p g g that satisfy the above conditions very easily formally in time polynomial in p outputs two pairs x xx x such that: x x in ptimes px x in ptimes p and Hx xHx x but x xx x Be sure to justify your answer. Hint: Recalling the formula for calculating the Legendre symbol may be useful.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
