Problem
Let (Gen, H) be a collision-resistant hash function. Is (Gen, H^) defined byH^s(x)=defHs(Hs(x))necessarily collision resistant?
Solution
Assuming that H^ is not collision-resistent, i.e.
∃xî€ =y,H^s(x)=H^s(y) Thus Hs(Hs(x))=Hs(Hs(y))
If Hs(x)=Hs(y), (x,y) is a pair of collision for H
If Hs(x)î€ =Hs(y), let x′=Hs(x), y′=Hs(y).
Hs(Hs(x))=Hs(Hs(y)), (x′,y′) is a pair of collision for H
Therefore, H^ is not collision-resistent implies H is not collision-resistent. Then H is collision-resistent implies H^ is collision-resistent.