AES-256 KeyExpansion() - MATLAB Cody - MATLAB Central

Problem 45213. AES-256 KeyExpansion()

Difficulty:Rate

Given a 32-byte hexadecimal character array representing the AES-256 input key, execute the AES-256 algorithm, KeyExpansion() and output the xth (input) key-word of this 60-word sequence as a 4x2 hexadecimal array. You will need the SubBytes() function done in one of my previous Cody problems.

Refer to this link: https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf

For example:

key='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';
x=58;%want key-word number 58 out of 60
w=['d0';'eb';'7c';'8a'];%58th key-word

Solution Stats

75.0% Correct | 25.0% Incorrect
Last Solution submitted on Oct 03, 2021

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers2

Community Treasure Hunt

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

Start Hunting!