Home /
Expert Answers /
Computer Science /
20-points-consider-the-following-hash-function-messages-are-in-the-form-of-a-sequence-of-decimal-pa693
(Solved): (20 points) Consider the following hash function. Messages are in the form of a sequence of decimal ...
(20 points) Consider the following hash function. Messages are in the form of a sequence of decimal numbers, M=(a1?,a2?,…,at?). The hash value h is calculated as h=(?i=1t?(ai?)2)modn, for some predefined value n. a. Does this hash function satisfy any of the requirements for a hash function listed in Section 3.2 of the textbook (or on Slide 11 of Lect03a)? Explain your answer.
H can be applied to a block of data of any size. H produces a fixed-length output. - H(x) is relatively easy to compute for any given x, making both hardware and software implementations practical. - For any given code h, it is computationally infeasible to find x such that H(x)=h. A hash function with this property is referred to as one-way or preimage resistant. - For any given block x, it is computationally infeasible to find yx with H(y)=H(x). A hash function with this property is referred to as second preimage resistant. This is sometimes referred to as weak collision resistant. - It is computationally infeasible to find any pair (x,y) such that H(x)=H(y). - A hash function with this property is referred to as collision resistant. This is sometimes referred to as strong collision resistant.