Write a Python script that implements the CHF (the Casual Hash Function.) The input data should be split into blocks of 32 bits. If the last block is smaller than 32 bits, the remaining bits should be...


Write a Python script that implements the CHF (the Casual Hash Function.) The input data should be split into blocks of 32 bits. If the last block is smaller than 32 bits, the remaining bits should be filled with 1 followed by as many zeros as required. A and B are 2 buffers with specific values (see below). Each block in the message should be combined as shown in the image below. All resulting blocks (i.e. FBI) should be combined with "&" to produce the digest. The size of the digest is 64 bits. Calculate the digest for the string: "Alright, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, the fresh-water system, and public health, what have the Romans ever done for us?"


CHF – The Casual Hash Function<br>For each M, where M, is a block in M<br>padding<br>M =<br>100...<br>32 bits<br>32 bits<br>32 bits<br>32 bits<br>- A = Ox67452301<br>32 bits<br>Oxefcdab89<br>B:<br>%3D<br>32 bits<br>A if i is even<br>FB; =<br>B if i is odd<br>64 bits<br>Digest = FB, & FB2 & FB3 & ...<br>Fairfield<br>%3D<br>UNIVERSITY<br>

Extracted text: CHF – The Casual Hash Function For each M, where M, is a block in M padding M = 100... 32 bits 32 bits 32 bits 32 bits - A = Ox67452301 32 bits Oxefcdab89 B: %3D 32 bits A if i is even FB; = B if i is odd 64 bits Digest = FB, & FB2 & FB3 & ... Fairfield %3D UNIVERSITY

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here