Cody

# Problem 45212. AES MixColumns() Transformation

Solution 2037634

Submitted on 28 Nov 2019 by William
• Size: 229
• 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
stateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a']; stateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8']; assert(isequal(MixColumns(stateI),stateO))

2   Pass
stateI=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; stateO=['ea' '75' '96' 'de' 'e9' 'a0' 'fb' '8a' 'f0' '1c' '09' '9b' '35' '67' '8d' 'bc']; assert(isequal(MixColumns(stateI),stateO))

3   Pass
stateI=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; stateO=['fe' '64' 'e2' '8a' 'c6' '74' '06' '7a' 'c3' '19' '73' '3c' '95' '4b' '8f' '49']; assert(isequal(MixColumns(stateI),stateO))

4   Pass
stateI=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; stateO=['70' '26' 'a8' 'ec' 'e5' '10' 'a6' '17' '24' '82' '27' 'e4' '34' 'ae' '27' 'dc']; assert(isequal(MixColumns(stateI),stateO))

5   Pass
stateI=['70' '26' 'a8' 'ec' 'e5' '10' 'a6' '17' '24' '82' '27' 'e4' '34' 'ae' '27' 'dc']; stateO=['ce' '33' '32' 'dd' '50' '23' '9b' 'ac' '16' 'b6' 'df' '1a' '7a' 'c6' 'ab' '76']; assert(isequal(MixColumns(stateI),stateO))

6   Pass
stateI=['ce' '33' '32' 'dd' '50' '23' '9b' 'ac' '16' 'b6' 'df' '1a' '7a' 'c6' 'ab' '76']; stateO=['3d' '23' 'e5' 'e9' 'f2' '0c' 'b1' '0b' '28' '01' '2b' '67' '78' '7d' '6b' '0f']; assert(isequal(MixColumns(stateI),stateO))

### Community Treasure Hunt

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

Start Hunting!