{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2026-04-06T14:01:22.000Z","description":"Problems submitted by members of the MATLAB Central community.","is_default":true,"created_by":161519,"badge_id":null,"featured":false,"trending":false,"solution_count_in_trending_period":0,"trending_last_calculated":"2026-04-06T00:00:00.000Z","image_id":null,"published":true,"community_created":false,"status_id":2,"is_default_group_for_player":false,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"description_opc":null,"description_html":null,"published_at":null},"problems":[{"id":45211,"title":"AES SubBytes() Transformation","description":"Given a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm SubBytes() transformation and output a 16x2 character hexadecimal array. \r\n\r\nRefer to this link: \u003chttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003e\r\n\r\nFor example:\r\n\r\n  statei=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\n  stateo=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2'];","description_html":"\u003cp\u003eGiven a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm SubBytes() transformation and output a 16x2 character hexadecimal array.\u003c/p\u003e\u003cp\u003eRefer to this link: \u003ca href = \"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\"\u003ehttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/a\u003e\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003estatei=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\nstateo=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2'];\r\n\u003c/pre\u003e","function_template":"function stateO = SubBytes(stateI)\r\n  stateO = stateI;\r\nend","test_suite":"%%\r\nstateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\nstateO=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; \r\nassert(isequal(SubBytes(stateI),stateO))\r\n%%\r\nstateI=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; \r\nstateO=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; \r\nassert(isequal(SubBytes(stateI),stateO))\r\n%%\r\nstateI=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; \r\nstateO=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; \r\nassert(isequal(SubBytes(stateI),stateO))\r\n%%\r\nstateI=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; \r\nstateO=['7d';'24';'df';'52';'d1';'a5';'b8';'24';'c0';'04';'f6';'de';'7d';'04';'25';'cd']; \r\nassert(isequal(SubBytes(stateI),stateO))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":2,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":7,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-11-21T17:35:28.000Z","updated_at":"2025-12-28T04:07:40.000Z","published_at":"2019-11-21T17:45:04.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm SubBytes() transformation and output a 16x2 character hexadecimal array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to this link:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[statei=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\\nstateo=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2'];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45213,"title":"AES-256 KeyExpansion()","description":"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.\r\n\r\nRefer to this link: \u003chttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003e\r\n\r\nFor example:\r\n\r\n  key='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';\r\n  x=58;%want key-word number 58 out of 60\r\n  w=['d0';'eb';'7c';'8a'];%58th key-word","description_html":"\u003cp\u003eGiven 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.\u003c/p\u003e\u003cp\u003eRefer to this link: \u003ca href = \"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\"\u003ehttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/a\u003e\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ekey='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';\r\nx=58;%want key-word number 58 out of 60\r\nw=['d0';'eb';'7c';'8a'];%58th key-word\r\n\u003c/pre\u003e","function_template":"function w = KeyExpansion(key,x)\r\n  w = key;\r\nend","test_suite":"%%\r\nkey='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';\r\nx=58;\r\nw=['d0';'eb';'7c';'8a'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='4b6b0490163a5b44345675ba437aec16eee63eee26643e0d2fe1f51eb8e0ca0b';\r\nx=31\r\nw=['da';'8d';'75';'fb'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='c0ad28b4cb90e11f5420fbfe9042b10f79e5a3adc1ca2fdb6c3e034a4ee79d4b';\r\nx=60;\r\nw=['38';'57';'bb';'18'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='b8b6426ab2dedb79f812fc5c2edb81e5a3fd5ef58a9dcbe728fcb93e36352969';\r\nx=10;\r\nw=['9d';'cd';'60';'16'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999';\r\nx=7;\r\nw=['48';'d9';'78';'d8'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999';\r\nx=57;\r\nw=['e3';'7d';'c6';'78'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999';\r\nx=58;\r\nw=['cd';'9a';'06';'35'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999';\r\nx=59;\r\nw=['1e';'2b';'6e';'33'];\r\nassert(isequal(KeyExpansion(key,x),w))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":3,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-11-22T00:25:14.000Z","updated_at":"2025-10-11T16:12:13.000Z","published_at":"2019-11-22T01:37:11.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven 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.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to this link:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[key='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';\\nx=58;%want key-word number 58 out of 60\\nw=['d0';'eb';'7c';'8a'];%58th key-word]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45212,"title":"AES MixColumns() Transformation","description":"Given a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm MixColumns() transformation and output a 16x2 character hexadecimal array.\r\n\r\nRefer to this link: \u003chttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003e\r\n\r\nFor example:\r\n\r\n  stateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\n  stateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8'];","description_html":"\u003cp\u003eGiven a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm MixColumns() transformation and output a 16x2 character hexadecimal array.\u003c/p\u003e\u003cp\u003eRefer to this link: \u003ca href = \"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\"\u003ehttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/a\u003e\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003estateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\nstateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8'];\r\n\u003c/pre\u003e","function_template":"function stateO = MixColumns(stateI)\r\n  stateO = stateI;\r\nend","test_suite":"%%\r\nstateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\nstateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; \r\nstateO=['ea'\r\n    '75'\r\n    '96'\r\n    'de'\r\n    'e9'\r\n    'a0'\r\n    'fb'\r\n    '8a'\r\n    'f0'\r\n    '1c'\r\n    '09'\r\n    '9b'\r\n    '35'\r\n    '67'\r\n    '8d'\r\n    'bc'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; \r\nstateO=['fe'\r\n    '64'\r\n    'e2'\r\n    '8a'\r\n    'c6'\r\n    '74'\r\n    '06'\r\n    '7a'\r\n    'c3'\r\n    '19'\r\n    '73'\r\n    '3c'\r\n    '95'\r\n    '4b'\r\n    '8f'\r\n    '49'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; \r\nstateO=['70'\r\n    '26'\r\n    'a8'\r\n    'ec'\r\n    'e5'\r\n    '10'\r\n    'a6'\r\n    '17'\r\n    '24'\r\n    '82'\r\n    '27'\r\n    'e4'\r\n    '34'\r\n    'ae'\r\n    '27'\r\n    'dc'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['70'\r\n    '26'\r\n    'a8'\r\n    'ec'\r\n    'e5'\r\n    '10'\r\n    'a6'\r\n    '17'\r\n    '24'\r\n    '82'\r\n    '27'\r\n    'e4'\r\n    '34'\r\n    'ae'\r\n    '27'\r\n    'dc'];\r\nstateO=['ce'\r\n    '33'\r\n    '32'\r\n    'dd'\r\n    '50'\r\n    '23'\r\n    '9b'\r\n    'ac'\r\n    '16'\r\n    'b6'\r\n    'df'\r\n    '1a'\r\n    '7a'\r\n    'c6'\r\n    'ab'\r\n    '76'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['ce'\r\n    '33'\r\n    '32'\r\n    'dd'\r\n    '50'\r\n    '23'\r\n    '9b'\r\n    'ac'\r\n    '16'\r\n    'b6'\r\n    'df'\r\n    '1a'\r\n    '7a'\r\n    'c6'\r\n    'ab'\r\n    '76'];\r\nstateO=['3d'\r\n    '23'\r\n    'e5'\r\n    'e9'\r\n    'f2'\r\n    '0c'\r\n    'b1'\r\n    '0b'\r\n    '28'\r\n    '01'\r\n    '2b'\r\n    '67'\r\n    '78'\r\n    '7d'\r\n    '6b'\r\n    '0f'];\r\nassert(isequal(MixColumns(stateI),stateO))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":4,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-11-21T18:10:13.000Z","updated_at":"2026-04-04T03:04:54.000Z","published_at":"2019-11-21T18:19:12.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm MixColumns() transformation and output a 16x2 character hexadecimal array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to this link:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[stateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\\nstateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8'];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":45211,"title":"AES SubBytes() Transformation","description":"Given a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm SubBytes() transformation and output a 16x2 character hexadecimal array. \r\n\r\nRefer to this link: \u003chttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003e\r\n\r\nFor example:\r\n\r\n  statei=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\n  stateo=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2'];","description_html":"\u003cp\u003eGiven a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm SubBytes() transformation and output a 16x2 character hexadecimal array.\u003c/p\u003e\u003cp\u003eRefer to this link: \u003ca href = \"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\"\u003ehttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/a\u003e\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003estatei=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\nstateo=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2'];\r\n\u003c/pre\u003e","function_template":"function stateO = SubBytes(stateI)\r\n  stateO = stateI;\r\nend","test_suite":"%%\r\nstateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\nstateO=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; \r\nassert(isequal(SubBytes(stateI),stateO))\r\n%%\r\nstateI=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; \r\nstateO=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; \r\nassert(isequal(SubBytes(stateI),stateO))\r\n%%\r\nstateI=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; \r\nstateO=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; \r\nassert(isequal(SubBytes(stateI),stateO))\r\n%%\r\nstateI=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; \r\nstateO=['7d';'24';'df';'52';'d1';'a5';'b8';'24';'c0';'04';'f6';'de';'7d';'04';'25';'cd']; \r\nassert(isequal(SubBytes(stateI),stateO))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":2,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":7,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-11-21T17:35:28.000Z","updated_at":"2025-12-28T04:07:40.000Z","published_at":"2019-11-21T17:45:04.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm SubBytes() transformation and output a 16x2 character hexadecimal array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to this link:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[statei=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\\nstateo=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2'];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45213,"title":"AES-256 KeyExpansion()","description":"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.\r\n\r\nRefer to this link: \u003chttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003e\r\n\r\nFor example:\r\n\r\n  key='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';\r\n  x=58;%want key-word number 58 out of 60\r\n  w=['d0';'eb';'7c';'8a'];%58th key-word","description_html":"\u003cp\u003eGiven 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.\u003c/p\u003e\u003cp\u003eRefer to this link: \u003ca href = \"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\"\u003ehttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/a\u003e\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ekey='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';\r\nx=58;%want key-word number 58 out of 60\r\nw=['d0';'eb';'7c';'8a'];%58th key-word\r\n\u003c/pre\u003e","function_template":"function w = KeyExpansion(key,x)\r\n  w = key;\r\nend","test_suite":"%%\r\nkey='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';\r\nx=58;\r\nw=['d0';'eb';'7c';'8a'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='4b6b0490163a5b44345675ba437aec16eee63eee26643e0d2fe1f51eb8e0ca0b';\r\nx=31\r\nw=['da';'8d';'75';'fb'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='c0ad28b4cb90e11f5420fbfe9042b10f79e5a3adc1ca2fdb6c3e034a4ee79d4b';\r\nx=60;\r\nw=['38';'57';'bb';'18'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='b8b6426ab2dedb79f812fc5c2edb81e5a3fd5ef58a9dcbe728fcb93e36352969';\r\nx=10;\r\nw=['9d';'cd';'60';'16'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999';\r\nx=7;\r\nw=['48';'d9';'78';'d8'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999';\r\nx=57;\r\nw=['e3';'7d';'c6';'78'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999';\r\nx=58;\r\nw=['cd';'9a';'06';'35'];\r\nassert(isequal(KeyExpansion(key,x),w))\r\n%%\r\nkey='7f837ce449b892bce32f99ba24f64c5f40ac117fc56e514f48d978d8a2e48999';\r\nx=59;\r\nw=['1e';'2b';'6e';'33'];\r\nassert(isequal(KeyExpansion(key,x),w))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":3,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-11-22T00:25:14.000Z","updated_at":"2025-10-11T16:12:13.000Z","published_at":"2019-11-22T01:37:11.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven 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.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to this link:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[key='e32868331fa8ef0138de0de85478346aec5e3912b6029ae71691c384237a3eeb';\\nx=58;%want key-word number 58 out of 60\\nw=['d0';'eb';'7c';'8a'];%58th key-word]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45212,"title":"AES MixColumns() Transformation","description":"Given a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm MixColumns() transformation and output a 16x2 character hexadecimal array.\r\n\r\nRefer to this link: \u003chttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003e\r\n\r\nFor example:\r\n\r\n  stateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\n  stateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8'];","description_html":"\u003cp\u003eGiven a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm MixColumns() transformation and output a 16x2 character hexadecimal array.\u003c/p\u003e\u003cp\u003eRefer to this link: \u003ca href = \"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\"\u003ehttps://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/a\u003e\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003estateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\nstateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8'];\r\n\u003c/pre\u003e","function_template":"function stateO = MixColumns(stateI)\r\n  stateO = stateI;\r\nend","test_suite":"%%\r\nstateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\r\nstateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['11';'07';'d8';'19';'d0';'5d';'b2';'07';'59';'bf';'5c';'c4';'11';'bf';'6f';'a2']; \r\nstateO=['ea'\r\n    '75'\r\n    '96'\r\n    'de'\r\n    'e9'\r\n    'a0'\r\n    'fb'\r\n    '8a'\r\n    'f0'\r\n    '1c'\r\n    '09'\r\n    '9b'\r\n    '35'\r\n    '67'\r\n    '8d'\r\n    'bc'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['82';'c5';'61';'d4';'70';'4c';'37';'c5';'cb';'08';'4a';'1c';'82';'08';'a8';'3a']; \r\nstateO=['fe'\r\n    '64'\r\n    'e2'\r\n    '8a'\r\n    'c6'\r\n    '74'\r\n    '06'\r\n    '7a'\r\n    'c3'\r\n    '19'\r\n    '73'\r\n    '3c'\r\n    '95'\r\n    '4b'\r\n    '8f'\r\n    '49'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['13';'a6';'ef';'48';'51';'29';'9a';'a6';'1f';'30';'d6';'9c';'13';'30';'c2';'80']; \r\nstateO=['70'\r\n    '26'\r\n    'a8'\r\n    'ec'\r\n    'e5'\r\n    '10'\r\n    'a6'\r\n    '17'\r\n    '24'\r\n    '82'\r\n    '27'\r\n    'e4'\r\n    '34'\r\n    'ae'\r\n    '27'\r\n    'dc'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['70'\r\n    '26'\r\n    'a8'\r\n    'ec'\r\n    'e5'\r\n    '10'\r\n    'a6'\r\n    '17'\r\n    '24'\r\n    '82'\r\n    '27'\r\n    'e4'\r\n    '34'\r\n    'ae'\r\n    '27'\r\n    'dc'];\r\nstateO=['ce'\r\n    '33'\r\n    '32'\r\n    'dd'\r\n    '50'\r\n    '23'\r\n    '9b'\r\n    'ac'\r\n    '16'\r\n    'b6'\r\n    'df'\r\n    '1a'\r\n    '7a'\r\n    'c6'\r\n    'ab'\r\n    '76'];\r\nassert(isequal(MixColumns(stateI),stateO))\r\n%%\r\nstateI=['ce'\r\n    '33'\r\n    '32'\r\n    'dd'\r\n    '50'\r\n    '23'\r\n    '9b'\r\n    'ac'\r\n    '16'\r\n    'b6'\r\n    'df'\r\n    '1a'\r\n    '7a'\r\n    'c6'\r\n    'ab'\r\n    '76'];\r\nstateO=['3d'\r\n    '23'\r\n    'e5'\r\n    'e9'\r\n    'f2'\r\n    '0c'\r\n    'b1'\r\n    '0b'\r\n    '28'\r\n    '01'\r\n    '2b'\r\n    '67'\r\n    '78'\r\n    '7d'\r\n    '6b'\r\n    '0f'];\r\nassert(isequal(MixColumns(stateI),stateO))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":4,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-11-21T18:10:13.000Z","updated_at":"2026-04-04T03:04:54.000Z","published_at":"2019-11-21T18:19:12.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a 16x2 input character hexadecimal array representing the AES state, execute the AES algorithm MixColumns() transformation and output a 16x2 character hexadecimal array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to this link:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[stateI=['e3';'38';'2d';'8e';'60';'8d';'3e';'38';'15';'f4';'a7';'88';'e3';'f4';'06';'1a'];\\nstateO=['36';'6a';'08';'2c';'4a';'1b';'d9';'63';'02';'9c';'37';'67';'c6';'00';'35';'f8'];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"term":"tag:\"advanced encryption standard\"","current_player_id":null,"fields":[{"name":"page","type":"integer","callback":null,"default":1,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"per_page","type":"integer","callback":null,"default":50,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"sort","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"body","type":"text","callback":null,"default":"*:*","directive":null,"facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":false},{"name":"group","type":"string","callback":null,"default":null,"directive":"group","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"difficulty_rating_bin","type":"string","callback":null,"default":null,"directive":"difficulty_rating_bin","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"id","type":"integer","callback":null,"default":null,"directive":"id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"tag","type":"string","callback":null,"default":null,"directive":"tag","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"product","type":"string","callback":null,"default":null,"directive":"product","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_at","type":"timeframe","callback":{},"default":null,"directive":"created_at","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"profile_id","type":"integer","callback":null,"default":null,"directive":"author_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_by","type":"string","callback":null,"default":null,"directive":"author","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player_id","type":"integer","callback":null,"default":null,"directive":"solver_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player","type":"string","callback":null,"default":null,"directive":"solver","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"solvers_count","type":"integer","callback":null,"default":null,"directive":"solvers_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"comments_count","type":"integer","callback":null,"default":null,"directive":"comments_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"likes_count","type":"integer","callback":null,"default":null,"directive":"likes_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leader_id","type":"integer","callback":null,"default":null,"directive":"leader_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leading_solution","type":"integer","callback":null,"default":null,"directive":"leading_solution","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true}],"filters":[{"name":"asset_type","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":"\"cody:problem\"","prepend":true},{"name":"profile_id","type":"integer","callback":{},"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":"author_id","static":null,"prepend":true}],"query":{"params":{"per_page":50,"term":"tag:\"advanced encryption standard\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"advanced encryption standard\"","","\"","advanced encryption standard","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f24a0b36e08\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f24a0b36d68\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f24a0b36408\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f24a0b37128\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f24a0b37088\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f24a0b36fe8\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f24a0b36ea8\u003e":"tag:\"advanced encryption standard\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f24a0b36ea8\u003e":"tag:\"advanced encryption standard\""},"queried_facets":{}},"query_backend":{"connection":{"configuration":{"index_url":"http://index-op-v2/solr/","query_url":"http://search-op-v2/solr/","direct_access_index_urls":["http://index-op-v2/solr/"],"direct_access_query_urls":["http://search-op-v2/solr/"],"timeout":10,"vhost":"search","exchange":"search.topic","heartbeat":30,"pre_index_mode":false,"host":"rabbitmq-eks","port":5672,"username":"cody-search","password":"78X075ddcV44","virtual_host":"search","indexer":"amqp","http_logging":"true","core":"cody"},"query_connection":{"uri":"http://search-op-v2/solr/cody/","proxy":null,"connection":{"parallel_manager":null,"headers":{"User-Agent":"Faraday v1.0.1"},"params":{},"options":{"params_encoder":"Faraday::FlatParamsEncoder","proxy":null,"bind":null,"timeout":null,"open_timeout":null,"read_timeout":null,"write_timeout":null,"boundary":null,"oauth":null,"context":null,"on_data":null},"ssl":{"verify":true,"ca_file":null,"ca_path":null,"verify_mode":null,"cert_store":null,"client_cert":null,"client_key":null,"certificate":null,"private_key":null,"verify_depth":null,"version":null,"min_version":null,"max_version":null},"default_parallel_manager":null,"builder":{"adapter":{"name":"Faraday::Adapter::NetHttp","args":[],"block":null},"handlers":[{"name":"Faraday::Response::RaiseError","args":[],"block":null}],"app":{"app":{"ssl_cert_store":{"verify_callback":null,"error":null,"error_string":null,"chain":null,"time":null},"app":{},"connection_options":{},"config_block":null}}},"url_prefix":"http://search-op-v2/solr/cody/","manual_proxy":false,"proxy":null},"update_format":"RSolr::JSON::Generator","update_path":"update","options":{"url":"http://search-op-v2/solr/cody"}}},"query":{"params":{"per_page":50,"term":"tag:\"advanced encryption standard\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"advanced encryption standard\"","","\"","advanced encryption standard","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f24a0b36e08\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f24a0b36d68\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f24a0b36408\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f24a0b37128\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f24a0b37088\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f24a0b36fe8\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f24a0b36ea8\u003e":"tag:\"advanced encryption standard\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f24a0b36ea8\u003e":"tag:\"advanced encryption standard\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":45211,"difficulty_rating":"medium"},{"id":45213,"difficulty_rating":"medium-hard"},{"id":45212,"difficulty_rating":"hard"}]}}