Cody

# Problem 45213. AES-256 KeyExpansion()

Solution 2036971

Submitted on 27 Nov 2019 by David Hill
• Size: 146
• This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
key='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb'; x=58; w=['d0';'eb';'7c';'8a']; assert(isequal(KeyExpansion(key,x),w))

2   Pass
key='4b6b0490163a5b44345675ba437aec16eee63eee26643e0d2fe1f51eb8e0ca0b'; x=31 w=['da';'8d';'75';'fb']; assert(isequal(KeyExpansion(key,x),w))

x = 31

3   Pass
key='c0ad28b4cb90e11f5420fbfe9042b10f79e5a3adc1ca2fdb6c3e034a4ee79d4b'; x=60; w=['38';'57';'bb';'18']; assert(isequal(KeyExpansion(key,x),w))

4   Pass
key='b8b6426ab2dedb79f812fc5c2edb81e5a3fd5ef58a9dcbe728fcb93e36352969'; x=10; w=['9d';'cd';'60';'16']; assert(isequal(KeyExpansion(key,x),w))

5   Pass
key='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999'; x=7; w=['48';'d9';'78';'d8']; assert(isequal(KeyExpansion(key,x),w))

6   Pass
key='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999'; x=57; w=['e3';'7d';'c6';'78']; assert(isequal(KeyExpansion(key,x),w))

7   Pass
key='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999'; x=58; w=['cd';'9a';'06';'35']; assert(isequal(KeyExpansion(key,x),w))

8   Pass
key='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999'; x=59; w=['1e';'2b';'6e';'33']; assert(isequal(KeyExpansion(key,x),w))