{"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":44924,"title":"Create State Array for initiating SHA-3-224 Hash","description":"Create binary represented state array (as the initial input to the sponge function (f)) from any length character array (N) with width (b=1600), digest length (d=224) and lane size (w=64) using SHA-3 Standard:\r\n\r\n\u003c\u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf\u003e\u003e. \r\n\r\nConvert character array to binary representation using UTF-8 value of each character. Output state array will be a matrix with size (5,5,64). Padding in accordance with the standard is required. XOR of the rate bits (r) with the padded message stream is required.","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 165px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 82.5px; transform-origin: 407px 82.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eCreate binary represented state array (as the initial input to the sponge function (f)) from any length character array (N) with width (b=1600), digest length (d=224) and lane size (w=64) using SHA-3 Standard:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003ehttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf    \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 84px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 42px; text-align: left; transform-origin: 384px 42px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eConvert character array to binary representation using UTF-8 value of each character. Output state array will be a matrix with size (5,5,64). Padding in accordance with the standard is required. XOR of the rate bits (r) with the padded message stream is required (see figure 7, page 18). Just the first 1600 bit input to the first function (f) represented as a state array (see section 3.1.2) is required for the output.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function A = SHA3(N)\r\n  A=zeros(5,5,64);\r\nend","test_suite":"%%\r\nN = '';\r\nA='0110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';\r\nassert(isequal(SHA3(N),reshape(reshape(A-48,[64,25])',[5,5,64])))\r\n%%\r\nN = 'abcdefghijklmnopqrstuvwxyz';\r\nA='1110000000000000000000000100000000000000000000000001000000000000000000000000010000000000000000000000011000000000000000000000000100000000000000000000001110000000000000000000000111000000000000000000000010000000000000000000000000110000000000000000000000000000000000000000000000001000000000000000000000001110000000000000000000000011000000000000000000000011100000000000000000000001000000000000000000000000011000000000000000000000001000000000000000000000000010000000000000000000000101000000000000000000000011100000000000000000000001110000000000000000000000100000000000000000000000001100000000000000000000000110000000000000000000000100000000000000000000000001100000000000000000000000110000000000000000000000111000000000000000000000010000000000000000000000000110000000000000000000000011000000000000000000000011100000000000000000000000010000000000000000000000111000000000000000000000011100000000000000000000001010000000000000000000000010000000000000000000000001000000000000000000000001100000000000000000000000111000000000000000000000001100000000000000000000001110000000000000000000000111000000000000000000000000000000000000000000000000000000000000000000000000101000000000000000000000010100000000000000000000001110000000000000000000000111000000000000000000000011100000000000000000000000000000000000000000000000101000000000000000000000000000000000000000000000000100000000000000000000000011000000000000000000000011100000000000000000000001100000000000000000000000000000000000000000000000010000000000000000000000000100000000000000000000000000000000000000000000000011000000000000000000000001100000000000000010000000';\r\nassert(isequal(SHA3(N),reshape(A-48,[5,5,64])))\r\n%%\r\nN = 'People who succeed have momentum. The more they succeed, the more they want to succeed and the more they find a way to succeed. Similarly, when someone is failing, the tendency is to get on a downward spiral that can even become a self-fulfilling prophecy.';\r\nA='1100100110010011000000000000101010010010011000000011001110100011111100000000101010011011101000000000010111111111000011000000001110110011000101100000000010000111010110100000000110100001010011100000000010110101100011100000000000001001001000100100000000000011001001111001000000010011000011100001100000000011000001100100110000000111110000100001110000000011001001100101110100000001101001100100111100000000000011110101110010000000010001110001110111100000001111110101011011110000000111100100111000111000000011111000110111111000000001110110110001111010000000110111111000111011000000010101110010111011000000000111110110001010100000000000111100011000001000000001111000001000001100000000110010011000111100000000110100011010011101000000010011111001011100000000000010011010001100100000000100111001011101101000000011101001101110101100000000101001011101101010000000011000010100000110000000011011111101101110100000001001010100111110010000000000111110010010101000000000000101001110010000000001100100001110001010000000011100000110010011000000011100001111100101000000000100010010000111000000000101001111100011011000000000100110011111100100000000100110001011000010000000001110101011100010000000001101010111001101100000000111010011011001100000000110010111001001111000000010110111101100110100000001010011101001100000000000011011001011101010000000010111011000101111000000001111001110101101010000000111011111100110110000000011010011100110110000000001010011100001010000000000001001100000011100000000011001110000010110000000000011100010110001010000000001100001110000111000000000100111111000111100000001100100111000001000000000';\r\nassert(isequal(SHA3(N),reshape(A-48,[5,5,64])))\r\n%%\r\nN = 'First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods. Third, adjust all your means to that end.';\r\nA='1100010111000111000000000011011110001111011000000000101010111111011000000000111110110101011010000000110110001011111001000000010110000011001101100000000111000111001110110000000110000111000101110000000010100011010001100100000000001111100001100000000000110011001011101010000000000101011001100101100000000111001101110100010000000101010100110101110000000011101001100100010100000001000010100001110100000000101000101110010110000000000000100100111110000000000001100101110010010000000101100000010000101000000001110001011101011000000001100000010110101010000000100000110001001001000000010100110000111000100000000000110100101100010000000001110110001110001000000011010011011010011100000001011111011000101100000000110001101000011100000000010100111010010110100000001011111011001100000000000000011000101101100000000010011000001100101100000000001010001101000110000000011001101100101111000000001001101101010110000000001000011000101110100000000000001110101110011000000011011100001111111100000001001101001111010000000000001100011110011111000000001100011110011111000000000100100110000111010000000100001111011111101000000000011110000111001100000000111110011111010000000000001110011111111100000000001110110011000100100000000111010111010001100000000110000111000111100000000010110011000001100000000000010101001000101000000000110011001011110000000000001011000011100100100000000011010111100001100000000011011110101011111000000011011011111001110000000001000001100100110110000000011000100011111010000000000010111010110100000000000011100101110000110000000011110110110010111000000011101001111010111000000001100000111010001010000000';\r\nassert(isequal(SHA3(N),reshape(A-48,[5,5,64])))\r\n\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":3,"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-06-18T00:59:47.000Z","updated_at":"2025-10-16T14:21:12.000Z","published_at":"2019-08-28T19:00:57.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\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\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCreate binary represented state array (as the initial input to the sponge function (f)) from any length character array (N) with width (b=1600), digest length (d=224) and lane size (w=64) using SHA-3 Standard:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ehttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf    \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eConvert character array to binary representation using UTF-8 value of each character. Output state array will be a matrix with size (5,5,64). Padding in accordance with the standard is required. XOR of the rate bits (r) with the padded message stream is required (see figure 7, page 18). Just the first 1600 bit input to the first function (f) represented as a state array (see section 3.1.2) is required for the output.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":44924,"title":"Create State Array for initiating SHA-3-224 Hash","description":"Create binary represented state array (as the initial input to the sponge function (f)) from any length character array (N) with width (b=1600), digest length (d=224) and lane size (w=64) using SHA-3 Standard:\r\n\r\n\u003c\u003chttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf\u003e\u003e. \r\n\r\nConvert character array to binary representation using UTF-8 value of each character. Output state array will be a matrix with size (5,5,64). Padding in accordance with the standard is required. XOR of the rate bits (r) with the padded message stream is required.","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 165px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 82.5px; transform-origin: 407px 82.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eCreate binary represented state array (as the initial input to the sponge function (f)) from any length character array (N) with width (b=1600), digest length (d=224) and lane size (w=64) using SHA-3 Standard:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003ehttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf    \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 84px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 42px; text-align: left; transform-origin: 384px 42px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eConvert character array to binary representation using UTF-8 value of each character. Output state array will be a matrix with size (5,5,64). Padding in accordance with the standard is required. XOR of the rate bits (r) with the padded message stream is required (see figure 7, page 18). Just the first 1600 bit input to the first function (f) represented as a state array (see section 3.1.2) is required for the output.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function A = SHA3(N)\r\n  A=zeros(5,5,64);\r\nend","test_suite":"%%\r\nN = '';\r\nA='0110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';\r\nassert(isequal(SHA3(N),reshape(reshape(A-48,[64,25])',[5,5,64])))\r\n%%\r\nN = 'abcdefghijklmnopqrstuvwxyz';\r\nA='1110000000000000000000000100000000000000000000000001000000000000000000000000010000000000000000000000011000000000000000000000000100000000000000000000001110000000000000000000000111000000000000000000000010000000000000000000000000110000000000000000000000000000000000000000000000001000000000000000000000001110000000000000000000000011000000000000000000000011100000000000000000000001000000000000000000000000011000000000000000000000001000000000000000000000000010000000000000000000000101000000000000000000000011100000000000000000000001110000000000000000000000100000000000000000000000001100000000000000000000000110000000000000000000000100000000000000000000000001100000000000000000000000110000000000000000000000111000000000000000000000010000000000000000000000000110000000000000000000000011000000000000000000000011100000000000000000000000010000000000000000000000111000000000000000000000011100000000000000000000001010000000000000000000000010000000000000000000000001000000000000000000000001100000000000000000000000111000000000000000000000001100000000000000000000001110000000000000000000000111000000000000000000000000000000000000000000000000000000000000000000000000101000000000000000000000010100000000000000000000001110000000000000000000000111000000000000000000000011100000000000000000000000000000000000000000000000101000000000000000000000000000000000000000000000000100000000000000000000000011000000000000000000000011100000000000000000000001100000000000000000000000000000000000000000000000010000000000000000000000000100000000000000000000000000000000000000000000000011000000000000000000000001100000000000000010000000';\r\nassert(isequal(SHA3(N),reshape(A-48,[5,5,64])))\r\n%%\r\nN = 'People who succeed have momentum. The more they succeed, the more they want to succeed and the more they find a way to succeed. Similarly, when someone is failing, the tendency is to get on a downward spiral that can even become a self-fulfilling prophecy.';\r\nA='1100100110010011000000000000101010010010011000000011001110100011111100000000101010011011101000000000010111111111000011000000001110110011000101100000000010000111010110100000000110100001010011100000000010110101100011100000000000001001001000100100000000000011001001111001000000010011000011100001100000000011000001100100110000000111110000100001110000000011001001100101110100000001101001100100111100000000000011110101110010000000010001110001110111100000001111110101011011110000000111100100111000111000000011111000110111111000000001110110110001111010000000110111111000111011000000010101110010111011000000000111110110001010100000000000111100011000001000000001111000001000001100000000110010011000111100000000110100011010011101000000010011111001011100000000000010011010001100100000000100111001011101101000000011101001101110101100000000101001011101101010000000011000010100000110000000011011111101101110100000001001010100111110010000000000111110010010101000000000000101001110010000000001100100001110001010000000011100000110010011000000011100001111100101000000000100010010000111000000000101001111100011011000000000100110011111100100000000100110001011000010000000001110101011100010000000001101010111001101100000000111010011011001100000000110010111001001111000000010110111101100110100000001010011101001100000000000011011001011101010000000010111011000101111000000001111001110101101010000000111011111100110110000000011010011100110110000000001010011100001010000000000001001100000011100000000011001110000010110000000000011100010110001010000000001100001110000111000000000100111111000111100000001100100111000001000000000';\r\nassert(isequal(SHA3(N),reshape(A-48,[5,5,64])))\r\n%%\r\nN = 'First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods. Third, adjust all your means to that end.';\r\nA='1100010111000111000000000011011110001111011000000000101010111111011000000000111110110101011010000000110110001011111001000000010110000011001101100000000111000111001110110000000110000111000101110000000010100011010001100100000000001111100001100000000000110011001011101010000000000101011001100101100000000111001101110100010000000101010100110101110000000011101001100100010100000001000010100001110100000000101000101110010110000000000000100100111110000000000001100101110010010000000101100000010000101000000001110001011101011000000001100000010110101010000000100000110001001001000000010100110000111000100000000000110100101100010000000001110110001110001000000011010011011010011100000001011111011000101100000000110001101000011100000000010100111010010110100000001011111011001100000000000000011000101101100000000010011000001100101100000000001010001101000110000000011001101100101111000000001001101101010110000000001000011000101110100000000000001110101110011000000011011100001111111100000001001101001111010000000000001100011110011111000000001100011110011111000000000100100110000111010000000100001111011111101000000000011110000111001100000000111110011111010000000000001110011111111100000000001110110011000100100000000111010111010001100000000110000111000111100000000010110011000001100000000000010101001000101000000000110011001011110000000000001011000011100100100000000011010111100001100000000011011110101011111000000011011011111001110000000001000001100100110110000000011000100011111010000000000010111010110100000000000011100101110000110000000011110110110010111000000011101001111010111000000001100000111010001010000000';\r\nassert(isequal(SHA3(N),reshape(A-48,[5,5,64])))\r\n\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":3,"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-06-18T00:59:47.000Z","updated_at":"2025-10-16T14:21:12.000Z","published_at":"2019-08-28T19:00:57.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\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\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCreate binary represented state array (as the initial input to the sponge function (f)) from any length character array (N) with width (b=1600), digest length (d=224) and lane size (w=64) using SHA-3 Standard:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ehttps://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf    \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eConvert character array to binary representation using UTF-8 value of each character. Output state array will be a matrix with size (5,5,64). Padding in accordance with the standard is required. XOR of the rate bits (r) with the padded message stream is required (see figure 7, page 18). Just the first 1600 bit input to the first function (f) represented as a state array (see section 3.1.2) is required for the output.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"}],"term":"tag:\"sha-3\"","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:\"sha-3\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"sha-3\"","","\"","sha-3","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007fbf32e12e60\u003e":null,"#\u003cMathWorks::Search::Field:0x00007fbf32e12dc0\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007fbf32e12500\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007fbf32e130e0\u003e":1,"#\u003cMathWorks::Search::Field:0x00007fbf32e13040\u003e":50,"#\u003cMathWorks::Search::Field:0x00007fbf32e12fa0\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007fbf32e12f00\u003e":"tag:\"sha-3\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007fbf32e12f00\u003e":"tag:\"sha-3\""},"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:\"sha-3\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"sha-3\"","","\"","sha-3","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007fbf32e12e60\u003e":null,"#\u003cMathWorks::Search::Field:0x00007fbf32e12dc0\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007fbf32e12500\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007fbf32e130e0\u003e":1,"#\u003cMathWorks::Search::Field:0x00007fbf32e13040\u003e":50,"#\u003cMathWorks::Search::Field:0x00007fbf32e12fa0\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007fbf32e12f00\u003e":"tag:\"sha-3\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007fbf32e12f00\u003e":"tag:\"sha-3\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":44924,"difficulty_rating":"hard"}]}}