Question: I'm trying to write a sponge-based cryptographic hash function in C code. The sponge has a 32-bytes capacity, rate 16 bytes, an input with 10*1

I'm trying to write a sponge-based cryptographic hash function in C code. The sponge has a 32-bytes capacity, rate 16 bytes, an input with 10*1 padding, and a specifiable number of output bytes. It must include the below functions. It reads mbytes from m and writes the rbytes bytes result to res.

void hash(unsigned char m[], unsigned mbytes, unsigned char res[], unsigned rbytes)

Unfortunately, this is all of the information I have on the assignment. It would be really helpful if you can leave comments (//) next to the line of codes explaining what they are doing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!