Create State Array for initiating SHA-3-224 Hash - MATLAB Cody - MATLAB Central

Problem 44924. Create State Array for initiating SHA-3-224 Hash

Difficulty:Rate
Create binary represented state array (as the initial input to the sponge function (f)) from any length character array (N) with width (b=1600), digest length (d=224) and lane size (w=64) using SHA-3 Standard:
https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
Convert character array to binary representation using UTF-8 value of each character. Output state array will be a matrix with size (5,5,64). Padding in accordance with the standard is required. XOR of the rate bits (r) with the padded message stream is required (see figure 7, page 18). Just the first 1600 bit input to the first function (f) represented as a state array (see section 3.1.2) is required for the output.

Solution Stats

37.5% Correct | 62.5% Incorrect
Last Solution submitted on Mar 28, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers2

Suggested Problems

More from this Author57

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page