attacks – Simple problem of computer security

this problem introduces a hash function similar in spirit to sha that operates on letters instead of binary data. it is called the toy tetragraph hash (tth).9 given a message consisting of a sequence of letters, tth produces a hash value consisting of four letters. first, tth divides the message into blocks of 16 letters, ignoring spaces, punctuation, and capitalization. if the message length is not divisible by 16, it is padded out with nulls. a four-number running total is maintained that starts out with the value (0, 0, 0, 0); this is input to a function, known as a com???pression function, for processing the first block. the compression function consists of two rounds. round 1: get the next block of text and arrange it as a row-wise 4 * 4 block of text and covert it to numbers (a = 0, b = 1, example, for the block abcdefghijklmnop,then, add each column mod 26 and add the result to the running total, mod 26. in this example, the running total is (24, 2, 6, 10).

round 2: using the matrix from round 1, rotate the first row left by 1, second row left by 2, third row left by 3, and reverse the order of the fourth rownow, add each column mod 26 and add the result to the running total. the new run???ning total is (5, 7, 9, 11). this running total is now the input into the first round of the compression function for the next block of text. after the final block is processed, convert the final running total to letters. for example, if the message is abcdefghijklmnop, then the hash is fhjl.
a. draw figures of the overall tth logic and the compression function logic.
b. calculate the hash function for the 48-letter message “i leave twenty million dollars to my friendly cousin bill.”
c. to demonstrate the weakness of tth, find a 48-letter block that produces the same hash as that just derived. hint: use lots of a’s.