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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started