Cody

# Problem 45211. AES SubBytes() Transformation

Solution 2030865

Submitted on 21 Nov 2019 by David Hill
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=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; assert(isequal(SubBytes(stateI),stateO))

2   Pass
stateI=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; stateO=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; assert(isequal(SubBytes(stateI),stateO))

3   Pass
stateI=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; stateO=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; assert(isequal(SubBytes(stateI),stateO))

4   Pass
stateI=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; stateO=['7d';'24';'df';'52';'d1';'a5';'b8';'24';'c0';'04';'f6';'de';'7d';'04';'25';'cd']; assert(isequal(SubBytes(stateI),stateO))

### Community Treasure Hunt

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

Start Hunting!