mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-03-12 05:25:23 -07:00
337 lines
81 KiB
C++
Generated
337 lines
81 KiB
C++
Generated
// testcasetoc.py generated code begin
|
|
uint8_t handshake_key[] = { 0xb3, 0x14, 0x88, 0x57, 0xb0, 0x46, 0x5, 0x96, 0x62, 0x37, 0xe0, 0x55, 0xb5, 0x60, 0xc4, 0x6 };
|
|
uint8_t ecdh_secret[] = { 0xaa, 0xbc, 0x10, 0x46, 0xd, 0x6d, 0xed, 0x4b, 0x58, 0x33, 0x88, 0xdb, 0xdb, 0x2, 0x86, 0xdb, 0x2d, 0xd8, 0x91, 0x52, 0x37, 0xeb, 0x59, 0x37, 0x42, 0xac, 0xb7, 0x5d, 0x5d, 0x5e, 0x82, 0xb4 };
|
|
|
|
static const uint8_t crypt_index = 3;
|
|
ChiakiGKCrypt gkcrypt;
|
|
ChiakiErrorCode err = chiaki_gkcrypt_init(&gkcrypt, NULL, 0, crypt_index, handshake_key, ecdh_secret);
|
|
if(err != CHIAKI_ERR_SUCCESS)
|
|
return MUNIT_ERROR;
|
|
|
|
|
|
// -- frame -- ChiakiKeyState key_state;
|
|
ChiakiKeyState key_state;
|
|
chiaki_key_state_init(&key_state);
|
|
|
|
uint8_t packet_0[126]; size_t packet_0_size = sizeof(packet_0); if(chiaki_base64_decode("AgAAAAEAAAQBAwlCI7oAAACAA5gAhJT79yG83L9WhXCDP/h48VDjBL03cGscKH6DLQ3ZOzh007JcllEEIpTP3DbJwYAF5MGH2BwWJJTcbZATOGrzCznFMInIL7pWssSgxQBcf2q+u+vECFWQ5zvEQsq4RxQs3bre0DchyEMz", 168, packet_0, &packet_0_size) != CHIAKI_ERR_SUCCESS || packet_0_size != 126) return MUNIT_ERROR;
|
|
uint8_t nalu_0[105]; size_t nalu_0_size = sizeof(nalu_0); if(chiaki_base64_decode("AAMAAAABZYiAhn8AL8gD/wh+/miASsv/rw5fm2PYQAAAAwAAAwAFIc42jXIHLchAAAe8A/i2oRmALiO8cB3sEzDosBxyZyFg4KK5rAXoBy0/2EfQAAADAAADAAADAAADAAADAAADAAJq", 140, nalu_0, &nalu_0_size) != CHIAKI_ERR_SUCCESS || nalu_0_size != 105) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_0;
|
|
memset(&av_packet_0, 0, sizeof(av_packet_0));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_0, &key_state, packet_0, sizeof(packet_0));
|
|
munit_assert(av_packet_0.is_video);
|
|
munit_assert_size(av_packet_0.data_size, ==, sizeof(nalu_0));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_0.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_0.data, av_packet_0.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_0), av_packet_0.data, nalu_0);
|
|
|
|
|
|
uint8_t packet_1[129]; size_t packet_1_size = sizeof(packet_1); if(chiaki_base64_decode("AgABAAEAIAQBA1qLB8QAAAEAAAAAI6yViW2Gd1ERoIOVS+8J6N4D36erxNa+1CiLmTVZfD+pMvNgT+OSMhXk+tFWDoRga6Nlbn59gIsrQqOeyj7TrFyHsIQdIWc5AAgGBfhi9AX/jVkAcXFy5+4z5Ob/FO4/C5LTEaPXLkvFWdbZ", 172, packet_1, &packet_1_size) != CHIAKI_ERR_SUCCESS || packet_1_size != 129) return MUNIT_ERROR;
|
|
uint8_t nalu_1[108]; size_t nalu_1_size = sizeof(nalu_1); if(chiaki_base64_decode("AAMAAAABZYiAhn8AL8gD/wh+/miASsv/rw5fm2PYQAAAAwAAAwAFIc42jXIHLchAAAe8A/i2oRmALiO8cB3sEzDosBxyZyFg4KK5rAXoBy0/2EfQAAADAAADAAADAAADAAADAAADAAJqAAAA", 144, nalu_1, &nalu_1_size) != CHIAKI_ERR_SUCCESS || nalu_1_size != 108) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_1;
|
|
memset(&av_packet_1, 0, sizeof(av_packet_1));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_1, &key_state, packet_1, sizeof(packet_1));
|
|
munit_assert(av_packet_1.is_video);
|
|
munit_assert_size(av_packet_1.data_size, ==, sizeof(nalu_1));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_1.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_1.data, av_packet_1.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_1), av_packet_1.data, nalu_1);
|
|
|
|
|
|
uint8_t packet_2[1424]; size_t packet_2_size = sizeof(packet_2); if(chiaki_base64_decode("EgACAAIAAEQBA8fX6tMAAAWAAF4AAAAyCmfH3hbmk3W9636CuDemFcSMDZ6bGzT6hgzm3ohtDQiH+HM913g7g7T+9pTlC/Qq6rPnmCX9UAX7EnjWaPgSook3ZeyAkY2j0T6FhnAg5fdRxJudosanrDvTbb5WWSGkwg/ut/ztG2Z4bD4FPPG9b64D83ln3f96O9NsFOCrsB5iOFVTmWwIlz78BuXTJ3qBUzUyIhQfriQdoDDJud8LeKhqLWlNVlOP8Nbx+I6Hl/wl9ee0rfZuZNsQ66x3cZH2D2blc77cHKgqJyFGen3CQnaaR84fabXXet6EHNkBX/6p87SVIRMfc9DUz/3rGi82c7kKQtyD1E9SH6FGb6KnXJlT7K5HdBJ4jj8+2N4c2L9fyGjv2vaa/I41/+WeBEbkwYmOdKVPEMNQQZCM1EqlKTaKaf52GsqlkfBSk1tkcwmb6tjnVVojGOxa3wV+swozFT2H5L1hQov+E6YFHEcAJ3G+79A9snxJOOZ94fI6Dthsw8qD2Y52Gs2vkJJu1+KzCSiIRD5qkS54S2fspzL1HX9PcyiKurp2vGQITQIEUc6VgcT0ZOqhVj8YJ7d6Q4j9FM3tPFej6Ys9cWZA6nW43WlMrtdhD6pJ9E2cLlKBomUiDNWpW9yKWCjUu2mOE67GG51I0rnIcTvufDK+WaX6NlmEnbg7OTj3xGWGQmrRRfDsHFB1px3CktrMLehPWGZtvz6fyE1wuj0HjiB0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sqVaBDDjmx8x4ZS0gsw+YjS5++4svlbHFOJnHzSjPOAMDEuc/ONSdX+3G0=", 1900, packet_2, &packet_2_size) != CHIAKI_ERR_SUCCESS || packet_2_size != 1424) return MUNIT_ERROR;
|
|
uint8_t nalu_2[1400]; size_t nalu_2_size = sizeof(nalu_2); if(chiaki_base64_decode("AAAAAAABQZoEQi+f4ASkBP/8QW9nJreZ4mlZxu8ZpWqn5dJ7r5pgZIDO0Xv/92AQqshFvRlthKWIEKvbIzWJBTYXkJnzMA+cUNmFVzuBy/0S3aXhO4JsKeQ9q+RAFEm7BECnIqes7Jega69fgZxDsrkfaPNBnbOoX09JcVBFhqBMphwqvpRp/nX8qKy/AN62KakIV7x/qeHcffPA3GfCmX3u2GkyzZnZ79/ALMjifQmc4vPl6B9BdPWZ0U398+tOpqfo0CVWTezXWRC4eFwt0szP3khlpTUiAtHd9vKsL0oaUUMkOn09IlL6Ew7j26PQYyBP+IJ3BIpkpKuwWRqwf2bghibYwmxuzNHQ4MB3RJQURYJwoA8nWUxkicMmMRWhYZ5aK15AxePoq54R39Cz36S3unOYPuHFmSAcywix/J56q4CncP1vzYI9s3vaGVKCaIPbEXA13bXqcyVmf4w8jNi64WsprCjLtbaolk1GUu+f09w04Da7L4RVuUaWQgwaI6RBMbm95APiJDQ4Sd7PJsO+5sSRcgvTES9NVFZI49YjuyLkybuBK9i5FHGnwWHIoaXWviOQbH3gkT5otSbINDjFEr7nwekD0o8DOFRHZw+CLMflTSxvYzdjlsaKu2gOQYTFeai74nuksGgIw8MMMnTh/CN6K79I9V+S1nXIsOikvO9+dbIMPb+3ldyotYPsKdVtwnGlVKDYIdB4LGvTFSAzPgvoS2LfU2qj1P3TRv+zOLPRTw9SgQ/8h1si8iL4jXIdzSB7HQyFtl4k7wEqOTATVt48VRuoH4bEEzH8OnQx9SOxeP4KPLpOx7mU/5dUvCxOKhJPoEwPwQQs2u4GEZKESbbWo4pTo0NeEpGcK9pMJn/sR8Ylq2vcuP+gDF+cHA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&av_packet_2, 0, sizeof(av_packet_2));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_2, &key_state, packet_2, sizeof(packet_2));
|
|
munit_assert(av_packet_2.is_video);
|
|
munit_assert_size(av_packet_2.data_size, ==, sizeof(nalu_2));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_2.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_2.data, av_packet_2.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_2), av_packet_2.data, nalu_2);
|
|
|
|
|
|
uint8_t packet_3[36]; size_t packet_3_size = sizeof(packet_3); if(chiaki_base64_decode("EgADAAIAIEQBA8f0C08AAAsQAF4AAAAxQblNDv49Be5DWfYx", 48, packet_3, &packet_3_size) != CHIAKI_ERR_SUCCESS || packet_3_size != 36) return MUNIT_ERROR;
|
|
uint8_t nalu_3[12]; size_t nalu_3_size = sizeof(nalu_3); if(chiaki_base64_decode("BWxK+hg9EhJA95+B", 16, nalu_3, &nalu_3_size) != CHIAKI_ERR_SUCCESS || nalu_3_size != 12) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_3;
|
|
memset(&av_packet_3, 0, sizeof(av_packet_3));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_3, &key_state, packet_3, sizeof(packet_3));
|
|
munit_assert(av_packet_3.is_video);
|
|
munit_assert_size(av_packet_3.data_size, ==, sizeof(nalu_3));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_3.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_3.data, av_packet_3.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_3), av_packet_3.data, nalu_3);
|
|
|
|
|
|
uint8_t packet_4[1424]; size_t packet_4_size = sizeof(packet_4); if(chiaki_base64_decode("EgAEAAIAQEQBA1XntcEAAAswAEsAACAypBtYe/N0T4u57Dqsubrk17PQHW8ELyAvaAo/sXzXxU9mPfmnlUiZMXdo6RntpHLZArAW93u0fu9vR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7Ywikqpp192+YZIWbbXx3z2twLxHEm7jY0ETKGg5NMdRlgaDrR7CGO29PJFNYpkSc5ieLZAmHPYhcU8vqrgqNiOZ0GsN9C59vst2NNYxkIwGP46DFCqGUC9Zgjc31RiVYnlKCkUE0XZwMxnOFdiDE9OA5PwajA0kYZN/Y3rAczFfYPsWlfSGZlWmU0lXiwVS75BdUjvWocA9So2gQRR0TmY90Pu2W9h/e6Xuxj77sCNVGsHvrJhivUv2a/vogA/b4FAR0X1HwPu2Cn+atyR+ak9ZwHVYPsFaNT7JwcjqmWvAr0Gmf29ovG9JQ5ONvYuqFPHVUcNqNUN93xHxRhSYJGkOHOkyQYoLbzQF6TLdq6VCb5Px69m0fx7NsocuTID6ZezU3rbUp/fIlB2LY5/hk6gfLKCXwhSeYo1vEqIfE0I920qv/KI5SX2PIgtw2Av98rdnUj4CZkns/wsKx1IKYRfoHAD5+SQsANWgRaN7iFAPCwY2qhGjGBUSQe9EijZwYkohj+Qpv05KdpMCFcbJDxO+/N6ubAB0Pl4OLgjQ/pcB0XYuguXIRJbJ8cb41GosxPvVtwXY/3rQ/Mr8xlvojwzZ4c2TvI1UY/NRZjybshcb6c0I6ewNAik3lFJUyvNWjeTWQ+HmGrUJv+DJyKuooFwMFggbE5WeZ63cYLMw+CDPNmCSR6FFiQD8pEC8yLysJ/CLbuKcCZUL10sEEQ=", 1900, packet_4, &packet_4_size) != CHIAKI_ERR_SUCCESS || packet_4_size != 1424) return MUNIT_ERROR;
|
|
uint8_t nalu_4[1400]; size_t nalu_4_size = sizeof(nalu_4); if(chiaki_base64_decode("AAAAAAABQQL5oETPxebVo44rgsAjIDgHI5wkuz0Ww5W/5urZG1Y+OGDPm2TXCd7ak1f8PF8cXyaBxnpMMXVMR5N+90NM9JJSkzjxeW6Hb+IH32ER3FEsljjZQwaPAoj6GvqPvzl5GVk9mVVMg2SZR+LpwiaQaaqkhBSWVYTgTDA4Abhu9nDFFKEQNvadKt+0SWH5PMUxdq1jaIYG7eN22TZv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7n8hguVHL5UMv7EORJKdUwgEOjJ6pfAUOh75K2+eIIS4+Xb0Wxnxqca0/TWZwRAa465OZNZRzxx99NDJkO055cpBcS1l2Pg0YMROOFfiGDkQdvJJpUO63UYiqrJB7BCcs4VQb1dmDcMjQysOtbfGvvEotNHVTN2efF+nkCVIuiAPCxxAnmbSBrjTMWYro7m7m5v8oDkw2/gHwGdJfw9S9L7AxCugzMK/NrqYhcQydx2n07L4DyFXd/mqpcNngjSV1XN7XsQTJHxRRDxmr3/02fjwKjR3oPthCL6FGQBmFyow6QY4ffIQi5KIrXyDJwLLpgqV8XD5O5tfJVz3OsVR8jUyPOc3HfVOv2GGfNCkOFytI9MOwz4XjvXBNveiQFKUNrrh0e5NS9rjGxR0FcRaFM0DrEj1HdQk3r6PcghsjoAo+9I4Y44n/WJWNBKUVcpdNVPug2AAoG5QIRWszIfr5rNyc+xgQcvFVAgvbsZQge/B6voMS8OzdI4rH55bM3/DNDy6d67xej93FD33XDFfJHyYMvXoJHOUQm07br5ID9B5AWyRkvg+zDED6A=", 1868, nalu_4, &nalu_4_size) != CHIAKI_ERR_SUCCESS || nalu_4_size != 1400) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_4;
|
|
memset(&av_packet_4, 0, sizeof(av_packet_4));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_4, &key_state, packet_4, sizeof(packet_4));
|
|
munit_assert(av_packet_4.is_video);
|
|
munit_assert_size(av_packet_4.data_size, ==, sizeof(nalu_4));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_4.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_4.data, av_packet_4.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_4), av_packet_4.data, nalu_4);
|
|
|
|
|
|
uint8_t packet_5[163]; size_t packet_5_size = sizeof(packet_5); if(chiaki_base64_decode("EgAFAAIAYEQBAyVRmNUAABDAAEsAACAxLcDgjQdOz39g8DGtikU+c1s0anc0mIORfw2kbN0uuArlwgJUM3Ox+R1M5Fw/EyWfraDrLEF+5rGe7R0lff3aFhGzLJGvFOVD6JjvpL3jqZ8cLUFNU4kPk5HWtov7Gl5E1Z6j7X6hJBJfWiCiG9DXylP2RInLrFo1RV7sjlcoqNt0Y3aatpYsVb9qEw==", 220, packet_5, &packet_5_size) != CHIAKI_ERR_SUCCESS || packet_5_size != 163) return MUNIT_ERROR;
|
|
uint8_t nalu_5[139]; size_t nalu_5_size = sizeof(nalu_5); if(chiaki_base64_decode("BO2lWceEiAJacXniOdSY51UunQ1oVFkQsu1i3ihOh/mfR+GpPn/elcT7+H47bR2OD/gDZlqF1Xf6gaPxbcvw6x6pWEesuhECFSnJqVpSPS/trjKSIUCll5OPTx8N3K/JSLgPXRVgW8yGWthXANm3r0cHuP9RVj3Z5aBYe+JQ3+hON8f05Djv37tl8A==", 188, nalu_5, &nalu_5_size) != CHIAKI_ERR_SUCCESS || nalu_5_size != 139) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_5;
|
|
memset(&av_packet_5, 0, sizeof(av_packet_5));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_5, &key_state, packet_5, sizeof(packet_5));
|
|
munit_assert(av_packet_5.is_video);
|
|
munit_assert_size(av_packet_5.data_size, ==, sizeof(nalu_5));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_5.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_5.data, av_packet_5.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_5), av_packet_5.data, nalu_5);
|
|
|
|
|
|
uint8_t packet_6[1363]; size_t packet_6_size = sizeof(packet_6); if(chiaki_base64_decode("EgAGAAIAgEQBA5azjhAAABFgAE8AAEAzrgIGreuIfwxq9ASUvQJyV+sk/tN8LQLyD529P2GhbPVwHSzCaPmmRxZNcLxuMiFBrOSd2h0v7QRqQmYSyKFRXTzFO/Oz8Zv50JPqlzGiRN7GS7CfXDyW9pRMRb8xIw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6j1iAWFJhKdIekUQuIi0hPejINVG2SDZInYeLeGR7eucyFdbilncryWHkmOT8y2jJzTdXl3K0XBaITBEI6CJorS8GeaWBjjhcz8y+oonCg1IDP3+p0r/bcluMZnF2QTIyanuIxLGSGWXXMwOEJIyub1trsvDF/xP/UXJ6ROj12gD0B0BRu2oCFm03fbaF3X03UPTxrvG66QzbXPWwtpIa2fmiHEeY6mM45XYKmfVyv4eCKXX3v7YgTCVoosYBYNbdXJUKNTNEk4SNyFvqyZCbSjlHu51g+F0cXxU1s5sIv6TgtYXdKOhHg2S6NnaNW/Ah6L+yMuFisZ6oP8LqpqI9lHG00UW3ZfdppfSCi5YaE+WiunAeAE9pMDW2M4absiM4FpaSVXoQ5fIO0VfaU9nrWL1u2No6+QQ+GvS4Hek3C4DFBoc81A0LO9mn7Cfwc7+kvvVb3YbvYMOveiFNdEFwneVJZWg0MnOa1orJlwt+U3e5PcN0n8rqvAGMkcpXezoNrDmyHNEhVLIHhbbFb78phWwttYk1eIIKXuZQfjv41O5WwKQlRxXg/71QqvFsri5iUbd+hff1BOyNwyA==", 1820, packet_6, &packet_6_size) != CHIAKI_ERR_SUCCESS || packet_6_size != 1363) return MUNIT_ERROR;
|
|
uint8_t nalu_6[1339]; size_t nalu_6_size = sizeof(nalu_6); if(chiaki_base64_decode("AD0AAAABQQFUaBEz//49Rahcd06lG38RbOsz8/+BFwO4rCdlpQJCnAKUxM5PafEcXJ77wccH+5O9juJmAOiGIms4bQXIzGjHiyQ8OQuL9TNPHRfX/2LN+ds1vPIzQIULkjm0PRGo7RxQLSx4D/xb4Mrp8Desjb+F66qbz8dn+oO++SyJUK4yMx8vPkuqVy4kts18WoRQlO/4/N1v5zn5zQACriwx04JpNNkh5ioShY6LcFwlOKSiYaNM6IcrrM6ktUTHPsJr1hHSUI9B2jxrYtrNds+G9imdeJy3PXrOds1q4zGEdl4hcSF25gmIb6QEIGXdv3OhFkgEdy6IbLV2av9qQgt3SgmWyHMjfv9Xq7BmTxZDa4+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AFbKUsDPkVc57u7+VuZrk5xhXqphuz2tTd8mAu9QMrq7j8oDjVYrOU3cm9PJncrURt7kTJxLfd5MHn1kZSDxjNCeA1/Nc4yhX44DGUMTgNNId7sUOAvgy1TttSXH+BpVp42D/5wFOcHsYWro9cn5XwhuBJdtHi5TvLWEO291S1yMHD1Co7rqwbVZNL67rLP3xWy8w9kSAZ84dx0KBo/cLFYFOvsByaOhm7oK8U2bcxRhqmAA4VJo3ujxsavX6faLnGNRo41Vb6tdsLlfq1q1QlPoJvcBiBeLrOVCo2i47KTD0UEtOzf5ywcU8hzf6tGU6w77ZttSgOMmDrObAL83JB0Ec6H0DcA==", 1788, nalu_6, &nalu_6_size) != CHIAKI_ERR_SUCCESS || nalu_6_size != 1339) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_6;
|
|
memset(&av_packet_6, 0, sizeof(av_packet_6));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_6, &key_state, packet_6, sizeof(packet_6));
|
|
munit_assert(av_packet_6.is_video);
|
|
munit_assert_size(av_packet_6.data_size, ==, sizeof(nalu_6));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_6.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_6.data, av_packet_6.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_6), av_packet_6.data, nalu_6);
|
|
|
|
|
|
uint8_t packet_7[1424]; size_t packet_7_size = sizeof(packet_7); if(chiaki_base64_decode("EgAHAAIAoEQBA/hPwIoAABawAEEAAGAyGS2cnGgJyx35/e08eupzFUcv/jpeBrXw+3Wc2YIwoFSS324yMQIs8Nsm3uD3xIRjONboqv9ruKgZ7flD3A1bKXiVJZ9tuitFizxCV7Ry7eHVs4xUiMFzrN8WPlo2IxBzz8mn6JUtMaWoIbV8WK/OfdA1Aesa1m6VCX/3PBq9/WSBmu4p8fJLCHyodGCoqD0u2IPrhrm6phKJ0vnhlWfRsm4fUxLBUCCpdV5kZzLwd+E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ScWT1jTyYJEqmfS6YyGhHkA4VQxoTCLB3eMvwCzWP5NZXd8oe6YNc8kV82q7/6BKRRX5MHuAeRvVnBKoRd7lcCudhrFG65ME7N5p8Zut0T5Iougyy9gtPjdvPslq3w6CpBFl2swvs1W7qCv4ppF2sEEPu4JFD2ycNqb/6CrlxCrkuzCvJ74ssX4Id5xWzoWB8/ME7uGdrVwDZBmgdxPREvSKcNWb8Sz10ALvjAS4T7/qzWYH1uyPuYVh0YSIfGhqrVIzZuTAU6WmFx+93mGeyIC/bP52YILPkeWt0E3qPZ/SeI8mI13bmjf+37+76L/ClONDw4R+HcKCTaFVnL9N/XysUWHCzbFGgnGpJIxhjyDmkTipsSLENq4sbMGPsKNQv9dN/qnEUR1v6FVaZ2fMVKJ/S1l8QOrYuOeOSZ5+fY0UYCMAY2G+rCgxPlUiv3d1GbJpEqc+Voz3hfYvb0sEgqAcACh/1bFdxxZUK1LQl8TpyE/HrN6j+W64pIMA+TLuiUsXtnJfXhh6I0BcVxrUGRidmX3Jl0bmFiGhP5Pss6kE0=", 1900, packet_7, &packet_7_size) != CHIAKI_ERR_SUCCESS || packet_7_size != 1424) return MUNIT_ERROR;
|
|
uint8_t nalu_7[1400]; size_t nalu_7_size = sizeof(nalu_7); if(chiaki_base64_decode("AAAAAAABQQHyaBEz//4AbuU7//xl/5Zm6skEgvEZ2ieKA8qKRcLoOrrTTe0aj435fiUCzzJLHHvYsfIZ8sfjHsI1IKicIcyIV0dp379WRCmM+q8DPuGw/d2h1spAWqYi/au8uQMY2Wp//3mvrD9kYjTulsqIXYmGeAvwo3oRmlRh475dcnj0PgprVEuPTEEAth/0Bit6Ybi7THX0bVGMPido0ciiDty+0Di80DItoYQolQS9bMTmdtuIBl7yBIrkfvo6DBUWAHDQI8jDLEemPTh/n0DEei8ykg2ut7Wwa5IXh6jbdre9Ael+qsY8mAEeQP63QzNWElOv0yj17TSK+Vtb7uCaADbiy/hfSihjRWwrcg4FHSWtw8XYEmpkM8DDIvKm7GU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c4qxqYBBi1z19ts1aXq+y2K666sUdUljrIrP/YphKEnDJNCxG6bTkyeRcBd3vmgjbFzniBFth/LeZQkg+lGJHbktlGb/XkMlHjnxeBw1WXHFBjTdKBgt+3WCff29uFECFeXY0JuSVZSViEjR0atGSHTgyYJDgvbtyyi17dfqqJpuPCfcjVKyhesp3pypAPVC9I7G9RDAcfLkcP3FcSIQiuY1grAo1Afd61/69fi9IGpqAq4hHKgjhYHUnVpFN45RtBGKRcABlZBS4S/Vdtl5790TGSh2jENZKkMtModOkPIiZhScRC9ku2VAQkEAfQByYn4hVTj4lcGJ2fFmaHbXzborr1r1lYzAYgYtkmZHmX6rOAVUnhAO6qrKxXNbUdNejusexyaL/R5W9cKbzL0gEDYw=", 1868, nalu_7, &nalu_7_size) != CHIAKI_ERR_SUCCESS || nalu_7_size != 1400) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_7;
|
|
memset(&av_packet_7, 0, sizeof(av_packet_7));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_7, &key_state, packet_7, sizeof(packet_7));
|
|
munit_assert(av_packet_7.is_video);
|
|
munit_assert_size(av_packet_7.data_size, ==, sizeof(nalu_7));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_7.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_7.data, av_packet_7.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_7), av_packet_7.data, nalu_7);
|
|
|
|
|
|
uint8_t packet_8[196]; size_t packet_8_size = sizeof(packet_8); if(chiaki_base64_decode("EgAIAAIAwEQBAwlTy/YAABxAAEEAAGAx76xesUBeyKD9lcl4n7YbW9Pmj8tnYvUSdLTiKrxXiB1BPQjZKAV2x1rocHLRegjsxJZ1DffXKgacw13+4PXD7yGqULfF9Ni1+dcVMND8pA8HMU2ze9FonuVuA7NIGbTCy4zHrS6iEJuaxhfFwkt9CCyubUwiFHKNOlK+utfm0aEhfBk/k35xjBXGNGsyj4UNSgBBuYudfRl0XdiHDdVos+VGbORJpeg+kBU3fA==", 264, packet_8, &packet_8_size) != CHIAKI_ERR_SUCCESS || packet_8_size != 196) return MUNIT_ERROR;
|
|
uint8_t nalu_8[172]; size_t nalu_8_size = sizeof(nalu_8); if(chiaki_base64_decode("BMyjv2Q+0B2eEHpzAltlioh+6AmSGgDM8H4t+vBKR/IB29clPybjTjkVzyHDoOhYhj24T8o+oKeKqXeSJrVWEyB7LUd5pD0s7zlAdKRQSYDIityirJ0oW3fNBCJXPpzMyylh/Nqjv9FOC9TDjbNXIGyZXsgzjUuBAV/MOkK2nll9cjq8Mw3bB2nAnRijg8gQhNg1qLbzDmvPrJpS9Y5HcOrVdmjvtTTg/K91pw==", 232, nalu_8, &nalu_8_size) != CHIAKI_ERR_SUCCESS || nalu_8_size != 172) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_8;
|
|
memset(&av_packet_8, 0, sizeof(av_packet_8));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_8, &key_state, packet_8, sizeof(packet_8));
|
|
munit_assert(av_packet_8.is_video);
|
|
munit_assert_size(av_packet_8.data_size, ==, sizeof(nalu_8));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_8.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_8.data, av_packet_8.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_8), av_packet_8.data, nalu_8);
|
|
|
|
|
|
uint8_t packet_9[1375]; size_t packet_9_size = sizeof(packet_9); if(chiaki_base64_decode("EgAJAAIA4EQBA/kUl6oAAB0AADAAAIAz7MY54TlevvHShbwbxRdNku2Qn3pFKnG6MaP6+qJVIpNM8zlLy3DJ7+lkjL6AvwTi/kFkAD+ybzlxW5vsM8LKN5rzKFfHC6j5BY1njze0wcNTwaAOlJmYFY642GQjH6a7xwATRySuBkYCdWyVHyD1JvulxG9z2Ac6bbm83Rzyk2lR1ouxXlrCkmwAnQTDlx35zGUZFZhPdpnHz8F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HkRkK5KCwVFMTHZ33U5zsjpvoZNg2biiEIfjq06QpLDGvWbMDA5lOi6SFZoE/Im1joIJr/QPi82jJj5IxxcmTuT+ndPKEE8+kCSaVilUhbfHvlvZw47qrYW3ol0KK0CQ0/VIcMzoWAb/AzN7Jv8uBwZcxd2nLJ6pww8VcddToqECU332lBhXyV7UPSCzAfVXzfwaPj4dQV5H9TElZb5sAdx1ZzE9KIvqbYTFMqVNhHIdUSiP/booL5exxM6fPyulsvdGOFeBy6gZjdnVuJmH1DCzsJ9x0mv+q2E+SJt50fKaBbkPybpmjo0pSvrDfBI43rGd00Sa9wfoH61xvPD092BHkM3kEhkf2sfNqoDggTu/f28nGSNaDt8yPJjee5eAZGudTEoKIOwG0HhU9QMD32wRLNHLh8mQFGvR5suOYwGMjcr52i4fA0SzW/07M1NsVLWF2eRdL2fZIaakfqND4C6Hnz53QWZgaA92OZCm2Esxg8LbzFrenA==", 1836, packet_9, &packet_9_size) != CHIAKI_ERR_SUCCESS || packet_9_size != 1375) return MUNIT_ERROR;
|
|
uint8_t nalu_9[1351]; size_t nalu_9_size = sizeof(nalu_9); if(chiaki_base64_decode("ADEAAAABQQCdGgRM//4YFg4TcqcT/7vOOUW2zpLhRD9npwwIWEwtDNAL/oNSXcBcYHgpMeW2V9bIzOJ8OdvBCH9V2vEKrpXIjtpQVeVCGf+QLfV0ObcLtmKvwGKCQzBkPopmZO3z9/zXJfiGAFkg/i7RNLhYIfZfllWaEwuQgf2qOPUFlRgsqdlV1Cwqm4GXpCuVD+M5QiVwPfgP/4ucmU77P9zv5IXwUer5E4mwllcpGH8h8kOURJol2rtvO0C8R8bIBBgUC1fMyrOJBaXvEkVtBCs0YQgF+VieLP685Gd+ol2qVZ8PYvs8BPO1SWVMLz5dMSpDfpwj/ImtA58JsNC+co8XXdkmbTSiNJv2BJ1kdh6fTrXwrLE0ZKX5E+x13wyBeq2KY12P9MugrxEOuilWOgQnTXyDkeQvWC7hyXtztw/tqcVFyRALKNUuekjcGhctd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EXJSslfZRj4TlN72j9RZSGpDVaRSD0nQX9xYZuhXBip+l2YWqPVR8VSLNsJ4mq/3J7nv00ZGr7Ha6BEsPmuQosZyn1oPstBNZMgF0uUMlBrDCF5pLZjK7Ujp2Lb6LNTlehXgYkLgh22byCf5myTWgaroMZPP+zrDVFsUsEt+U4j2RkfAHnfDCsUk7o/XArMgtxW6mycZjWW+0oBkrNDw0U4Pzin31ktGT/gKDjfShvfmq+WLtMGL7EzTF12jOtdhK6DugA==", 1804, nalu_9, &nalu_9_size) != CHIAKI_ERR_SUCCESS || nalu_9_size != 1351) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_9;
|
|
memset(&av_packet_9, 0, sizeof(av_packet_9));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_9, &key_state, packet_9, sizeof(packet_9));
|
|
munit_assert(av_packet_9.is_video);
|
|
munit_assert_size(av_packet_9.data_size, ==, sizeof(nalu_9));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_9.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_9.data, av_packet_9.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_9), av_packet_9.data, nalu_9);
|
|
|
|
|
|
uint8_t packet_10[1424]; size_t packet_10_size = sizeof(packet_10); if(chiaki_base64_decode("EgAKAAIBAEQBAwLR/mMAACJgADAAAKAyWX6VmeSNPLmxD5RbsCSgOH+haJibjTB1reHDo2ABnBmPbkMX6IZ9qJf59aDOOxE8w3x2RyeC4bdFQA3PTjWB05N1qpD3lBpF0As70KYwJu4AIptnoo0MeawYhiROW3KVQJ3h4U7/K1p4y7EWPgeq3VdYO3F3+g1HLnMj99qwObdUuZry+38W+NwYe+0tWhSnfcW8EQA6oAAzPboaC8ApQfbbqfBdTU7VDTkGNKV8+aRcFhu0qQhiVsQMtaktt8I+BcfmhMs8woe3a73+KjGXtf/bjgDU08+3LZTMgwbvRiR5jJuKkS55Z2OPhbU9BLQ7aPIlBZpc6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Yptf0e62fkVRPaky7cIqVCStWNxZ0WnMKr49Cb4fMHaNyH4JX/0AxVn1AUSXHjHrFduU9ZIUBWf0TNULRZkWhT3iJP8yuSFP4gl9dosm1qZZADR2/9YG6i7Hzsly+Er7nOLTWnmgjDom+jFEuek3LzixeLHHQNhgeil0VyIFu1qZ0QpP+e5K5zECluigpHejkbaxgiZHt+vYqqv3Gk3QvRENU7GlDpVBFg5NxF+xlSDrXCbw353r3lTeAzsUMVzJvx6TpOSL8RQqNfizMv8fhdjTp4MxdmAiP6gKFyZMWC2Ylzhtjr0P8RlFCLy+HZ2LMp9om3tjWff1vJLtZu8PZCs62Hn5+l/sLRsjNquWF1KlN1OgJkXcBijju1fKBCLqxqTaUET+7MNC85BSfF4cpbWeOfIsXQjBfnR6NlUaaLfmdP9YmUT2WhPJP9Xxvs99BhsRlg=", 1900, packet_10, &packet_10_size) != CHIAKI_ERR_SUCCESS || packet_10_size != 1424) return MUNIT_ERROR;
|
|
uint8_t nalu_10[1400]; size_t nalu_10_size = sizeof(nalu_10); if(chiaki_base64_decode("AAAAAAABQQC1GgRM//4WixUAs5hj/5I3KgXm0jife2IAbeKMCMpbdE+8KzYNKc+ZtsBC+sHdHxJo/S6HSTLnsw+qmJLGSKJhh8fAxTWWBNhrhIWqKmmLJFwr9Z12xLIWfdNZFbJBBxIQKpTe5ltazOXByC+DBO8WTlmbd5+vsE9Uh6Gw5GXtx9PfcRZncl0gteMENrnj4Lp+ySahGie6QCKzeLiHCUfIceqmywzhH3lnaV6KD7Ghd6cTB0Jteh+5cPwSwUrYXwwW47517Qr/OWGb1HG0HqV2s4la58AcfPoZc45FjMZWN+718l1iWh0/5sCNy8cqEOfGQ6zZlEiBsjUgclnN7NCM/llRk+kfqpUUoTCwh8eLfF2NUUQBmwvEkTCt9Gpiipt2IJ924IWZClULnx3Z6RQmDSDC5lLTXWuTh7u7fSIskVjVdxau3JcAR1EhOyWCcEsYuWSIa8pRXZEsBxl0cPlT+MaOmNdk+NsetdJ/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mbsDTvKFuyYzAuIxog5Qi0AIXwUkKujJCLtOkW1upvjTXUDrWDNKLcKw+5aedgbt+D/AvhDxs1Nneum4iwOcpIZIKcXxmB0/TPvAPm9alt8Ad9NRhfJaxc2WIfRNWYHbF+ynMt6c9vtMuX4QtrNsSBTFfDoEA+LbTFLxTVW378ZvzW/3BphOWQbklwl6MAPRCzqXroTpKTfs8XlqJbPNqlhKnc4O+jaO8BEkMEhu+i8l7PCouexlX9ZTfbi6D6PUtna5CxOskroZ253Ht1DwdIHJB5t30EEbF+HQ=", 1868, nalu_10, &nalu_10_size) != CHIAKI_ERR_SUCCESS || nalu_10_size != 1400) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_10;
|
|
memset(&av_packet_10, 0, sizeof(av_packet_10));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_10, &key_state, packet_10, sizeof(packet_10));
|
|
munit_assert(av_packet_10.is_video);
|
|
munit_assert_size(av_packet_10.data_size, ==, sizeof(nalu_10));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_10.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_10.data, av_packet_10.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_10), av_packet_10.data, nalu_10);
|
|
|
|
|
|
uint8_t packet_11[35]; size_t packet_11_size = sizeof(packet_11); if(chiaki_base64_decode("EgALAAIBIEQBA/FpI0YAACfwADAAAKAxlzLDthrdmf5qaV8=", 48, packet_11, &packet_11_size) != CHIAKI_ERR_SUCCESS || packet_11_size != 35) return MUNIT_ERROR;
|
|
uint8_t nalu_11[11]; size_t nalu_11_size = sizeof(nalu_11); if(chiaki_base64_decode("BW1F1JVpl1hLJyA=", 16, nalu_11, &nalu_11_size) != CHIAKI_ERR_SUCCESS || nalu_11_size != 11) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_11;
|
|
memset(&av_packet_11, 0, sizeof(av_packet_11));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_11, &key_state, packet_11, sizeof(packet_11));
|
|
munit_assert(av_packet_11.is_video);
|
|
munit_assert_size(av_packet_11.data_size, ==, sizeof(nalu_11));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_11.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_11.data, av_packet_11.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_11), av_packet_11.data, nalu_11);
|
|
|
|
|
|
uint8_t packet_12[1424]; size_t packet_12_size = sizeof(packet_12); if(chiaki_base64_decode("EgAMAAIBQEQBAxy4uY4AACgQAC4AAMAyyKNnLvvOHx7usGT88UJni01P5qcq/yiAjrha0P+J/nMTVTaBZvDkxcloNpNF+xfJeE06opVqmII6FLHcqp9mB75F/+5IUskInEQrQnzClvL4h+ztBltlIEYlDrZdw+PN6XGXFRuV63zBaaYZv8nxzRGtQxRJrWChzoqneOVs8jqyxuwD7RTBVKTzOT8/TtrbwxK7AkhDtIqKL53ebUQDb9VosuusA7JnanWvdqIylgkArtUC86GhVBJeD4xVifofI4im0Y22xAJUntEuKX2Gf8RWstafo/Ykhs4aq0nz68EqIaa4jimgpPK2VpNPEAKxYD5tLLkt/1mWP+JdkBuu1vQBEDkPZFyM7g/cuNOqEXNZJx1XR1zkVP8SVjvLn8ohFQdKmTJDoFyqNkKz4BtpL2WvoeCXWxC/kGH5OqcNoBVrflqeQY+sv96bMs+aObgdOuO/dQeShDbnS6VRXPlD5pMPFrEJRGoCHnv/pVpujEaLS16AItVZ6RJkDNf++1JILXSClEltm/ownUVck4ecrrPhXBdzSQAnbnDGH4SdiQ3sxE4XtFsuvCw6+kPBnYvkma7CPcEzc11EHDDMeaiqbb5V3xHAIByB/WWXn+oT5DNslo1/Aei4o7Qjk8KPNCPLd4ELCTg9mrJCO6E5ZFUQClk3RSjrMd/jLScFrpj56Eyu3XNYO68KKtvNSkTOMwpweQRRZWhegORuGP75wDUJdd2fyPuw2TaymssRp3F4b2XGxELgqW/9sXxc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wOPB6t/DbtokzMPvWCYL5iP0K0YIrVs/5x8=", 1900, packet_12, &packet_12_size) != CHIAKI_ERR_SUCCESS || packet_12_size != 1424) return MUNIT_ERROR;
|
|
uint8_t nalu_12[1400]; size_t nalu_12_size = sizeof(nalu_12); if(chiaki_base64_decode("AAAAAAABQQDNGgRM//4dfqE9j1rImCPZDp9LcSBUDq3DZXmYcKQ3EV3lTgg/x1o4iUcVkIVRFsooEapnCOVuLxROb/C3444VGx/bBUWBHS6Lov5lIaovzi0ssFDusvDTemWyXSOE1H4ETwr8rIOYBJMm05NoybeqDJn57CUfZFdlgIdVjAdrDn7pARZlvfUsOjTTHSwBuyztFvRNL7FUtPCZTjzpB3lWcckx+2BzVJ+ei5/aArgJFfxYfyiDI6mjSuBAq3mGDQ5s+oRddbaYbcSvlVZeo56XZGBwmS8KSJbLF4XMSenjWSSs4deChWrMQ0nyxt0WF/5G+/JaExy4I5PA/6y6clhNcOSft4tZXFq7fwgcQPgtgpNsC8jXkjudU+94x+dSQG3xlFViegETVOxjUtqYrpxaLv8+V24jhxQKQQgWtgvqd6MpydepkPLVHerncyAYSFLHui7NrW326WD/t5YhjGDNapF8XmxtgFj21RfCMYkTlS7MH79PXabZP+8KeVE2+Dlnm8FRH90gc95dhrOEx7IZWRv1ddhuHXF2xRCFFMl5mF62lcoD0aiKH47Aotl26WgpT30rUvrmPzqAQErzMXNBdoeuWVfW1d2X0AAU7vqWAmIyFwzMQUz4i8oexyCTzlCL0oRCUs/Tyv1HVoJtQtN5mPytuyqIOBpKptB2zumIzUAQVa2G3vROFjMVMU16sDeTOoyMyV/WfKE6alStsnd3EFvin21KLNE7wi1Mu5hF1QXVUEvG3H1+nTv+oNR6YCKENMRVOPyJNf5TiPrByFZRySDZk2UUR/3xAQqPwc73/W26/2Bhx5/QmnuhCSX++skfCbVZ6Z/phLcjUH9kiMf4r4oBizR/4BdWQSY6U7SU69CZNWCFUvrmo1SsLePt2bUWrOtqsJT6NKE2zmOGJ5EnU3aLcqrsdi7xFioQmY3iwUQmTtVOBh574gukl28HoyzNToc1Fcg7r6vO+9Q40LcnWBP0rx5RYUag2a8KguJsfYToBbVZfskbMV+dUw1IAJxww3cfU5t36HQ8/DCGUztLX9qOPl2x64Unrucoaba0r1yQakOQs5Uwqjd1QPV3clvUH4VmFjD616l6IDa5ncm1jE1+8OfqLxRFmQqZdyfeitFUNWMTsy+e3rWMvA6Ls+My1kLU4BeOYMiCUKqC+i1uWHigsNC9aypGCntj8He09DdolgV+1jaDTKQMlg8zddi9xEuLRqRE611YcsXbcbPJ8i67YkpojFB2FQzfvDpI1+JDUKHYNLYgM0KinqCBMaz7XebzfkspbMkmDIfNS9roo6NkqIMTTiLcofuHhYt1jkKIu/pjDx9+THkgj+3rl9XUmL646LHvess5uTEkAUkxOZDxk6AW/bBig8t7UqfxCCwamR1uy1DhgQ3f2ybowuMtP3PQUYfZCaVvfp7a0mlKrudZ8ZkCCsj8kPzWZyJZ/Tql48V0m8jQ3tLkUDa3p3M/duOacJqnMST4l3wUms6k+B2baasaMOQHXNv2A40qyGOFGuqPrbbkOnvMYvIS0KHDDJAfmlvd+yN9Ahc76eRM5+CBD53psLu+opho/vW6MUhraXyV7n9JTZ/3CpdmqBYGunNepmom18yP6QJoBoNYDp+EOE/PKaXo5lWnbXo/dJaNHSI8e6lgSNBCI9kwzy+FAmiQ4B6+EX3Nt4kkHeRbpSUtly/Q2hJCztD7l7hYpw6x3+Fh3uuTx6BY4afSNBOW/p7AwIOn19n32N+wVeMl6rp99Nclt7zFLQMjNKQZB47LRh+27vJxv9LA3d2j+x36AZ6/LPZCIoE9KKUnsNg/7k0/OYnmZQsGzA0z/NvlKZCajb6xTO/Tv+j56tLQSGc=", 1868, nalu_12, &nalu_12_size) != CHIAKI_ERR_SUCCESS || nalu_12_size != 1400) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_12;
|
|
memset(&av_packet_12, 0, sizeof(av_packet_12));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_12, &key_state, packet_12, sizeof(packet_12));
|
|
munit_assert(av_packet_12.is_video);
|
|
munit_assert_size(av_packet_12.data_size, ==, sizeof(nalu_12));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_12.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_12.data, av_packet_12.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_12), av_packet_12.data, nalu_12);
|
|
|
|
|
|
uint8_t packet_13[34]; size_t packet_13_size = sizeof(packet_13); if(chiaki_base64_decode("EgANAAIBYEQBA26SNTQAAC2gAC4AAMAxrwAZh6ksY4n2zQ==", 48, packet_13, &packet_13_size) != CHIAKI_ERR_SUCCESS || packet_13_size != 34) return MUNIT_ERROR;
|
|
uint8_t nalu_13[10]; size_t nalu_13_size = sizeof(nalu_13); if(chiaki_base64_decode("BW6UnA0HjWWqYA==", 16, nalu_13, &nalu_13_size) != CHIAKI_ERR_SUCCESS || nalu_13_size != 10) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_13;
|
|
memset(&av_packet_13, 0, sizeof(av_packet_13));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_13, &key_state, packet_13, sizeof(packet_13));
|
|
munit_assert(av_packet_13.is_video);
|
|
munit_assert_size(av_packet_13.data_size, ==, sizeof(nalu_13));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_13.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_13.data, av_packet_13.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_13), av_packet_13.data, nalu_13);
|
|
|
|
|
|
uint8_t packet_14[1402]; size_t packet_14_size = sizeof(packet_14); if(chiaki_base64_decode("EgAOAAIBgEQBAzZQ0IEAAC3AAEkAAOAzueu1YIFfbPSuNpRpQc0PWyUcoL+tpc5cC4/oNom3/6XmR+3rY2hJ4kV5U1FARGreBcxXaUOma3BUL+9I7HI2BG47vlEEDjbYeFo2/DKazXJVO+AcJZh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/FdLMSLLSNHnhJ0pOCm02vi/wTlMqcSOM5GPfyVB1PP5obPcITWxgxtjb1VHFnj1P53Y76bvoQMEbrXXjaHfgjP99w6YZekXnBqRXvy+fflT39a3vhAz82eu0v2rpwaNhMr/Irfi2o2GL5An7BwL5McPA854tfYQutqutihQzShUq0TrSqq/YluLv0FpCcoDEmw2M2Y2w2Y1LNSsS5sF66EYr+VF1uOsVHSqaOa19Lp1E/MHBzCWvEhuglPx8a7vOH034hXp5tnB16+YrSXypfhNIHxcqNPivX6hLtji4U8QHgCUfQL2acwrcPuvKLs31AMN6r3qL/9f52nOyH8hHiKnJCEFnScDpqZk+FdAcrHbXYdgxrj/IODO14eDp3mHNpWj0fUneCXnV6+x5TBx2FHKJdcrDEdasBQ9wFDswsu7yH7xLVxdSGsUQUOMJ/1KsRQ/G5S6n2/Lanpie2sUFSvbk5oCgVU8FJyPhIq8wE0+X8NRcYpg1V8HH5Yog5/5MTogy82LdH+a6WnJxBm9qHo8OIql5tGWFkpXyVsSYHROvS1AX6L7W3BaqDVXTUanzU59h0ftftWkUhDknDKdjSuwzeU/eZ8+mYfZLQefSMfZtKPoy0BYzQcMZkr2Xc9AeeQMygVYr26hA==", 1872, packet_14, &packet_14_size) != CHIAKI_ERR_SUCCESS || packet_14_size != 1402) return MUNIT_ERROR;
|
|
uint8_t nalu_14[1378]; size_t nalu_14_size = sizeof(nalu_14); if(chiaki_base64_decode("ABYAAAABQQDkGgRM//4CXpb7f7//xwtXrcv7zV5cY4pGnA6VBY0/wK+FDnxGCJq+R3DAqGjw8jzz9hrTyfbrRnQqJzVbj5uSJDzfK5W0AYoc3QzmxkUqz7KTeiC8RPpaKGEvDLPoYgYOpMME70B071QcWG5WzdA5J/ScBrhal4gAoYkvqfLKyxRwy/F4LiLflwmpacB1vWI8wM/6V/V8fAf84Jes+jomQ/SHZHFNJL+TWRnVZ10Y6ZmAUX0h22wvn4Aj5kKXZNSWzjHvO14hNDoqfB414h7+MFxZHlVtsv+rUfHReAc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dVmUW3ZZ+jjOdT+SEFgYPNNfP/cP3A28jypnGeuFcNu+abDXvPLXvScQxQkFZTJab8t7gU/A+52XlZ6Dekm3ga6Knt4/nXdihWiOHwqTy8PHJFyDjA3qysiAkqHN4GrFAtskwQmzZ4SsBneJ0qE/5DYSbbZmnjk6NtLkyYx33nhDTNidth4Xm/SGQ1hNvN9psR6ks2XplFUpuR1XLZ1JZ5A/P3JpHJE7rL44+zcKP8H8/zfTvH7KSelT3TdOEHqlQ7JDh6AAy0ekk+UV3F73mz+5NwE4NU2NHN7AHu0WyQejVkJTfGjptVYpECSMKr03665I1wbBqyi8QhdJFdce2e+x3+OV524ADGBPNB8srnqaFGL6kTGBH0e9FUtEwLZDrMw1XiqslV5Af7gt4UtCo/I3FlNIzD+U3v+bbdiXp6oT7/Jyq5Gt35HkghhrYAMX4AKVGI/w==", 1840, nalu_14, &nalu_14_size) != CHIAKI_ERR_SUCCESS || nalu_14_size != 1378) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_14;
|
|
memset(&av_packet_14, 0, sizeof(av_packet_14));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_14, &key_state, packet_14, sizeof(packet_14));
|
|
munit_assert(av_packet_14.is_video);
|
|
munit_assert_size(av_packet_14.data_size, ==, sizeof(nalu_14));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_14.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_14.data, av_packet_14.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_14), av_packet_14.data, nalu_14);
|
|
|
|
|
|
uint8_t packet_15[1377]; size_t packet_15_size = sizeof(packet_15); if(chiaki_base64_decode("EgAPAAIBoEQBA/HQAnwAADNAAHAAAQAzdqYtJOnis8/yz4FDcDSjq9aNMpzhF0BTHvenWSGZdD8hp/EX8oRSzqBzcsystVwv7yMafl4NyT4giDQdjGHwrKw2/++/KAJ2Peryn5sXPcSP3SyjLOnSw437grsp6g7j10hmFMe1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Nu8YEQP9t3Hmt3crD0Q64M5M6rN9/REkvT5WchUjGiN52tm/W7sHQ1F69Vn8qwfGpQEUWORJgcalVjdwvk1DdhvD0JS7AfiGPkV2Gjq4fGxwXYDVdDsvH6SQMGbmb4yUijNiWhtzfX9eC5tV7WXsSA+kul9TvWhodWeT6uMJW0VsWz2YpJzMeuk+GuozP/ISt8lP0ZVeF+xUuqTv8Z2uudjq79/oKKoUmKLS7UYN20e9RSNGetWkAndupBbq0YKQQqt2exAIJkLyIbFFYiGgmoxYSVMuCQS+aOtxH7NjF7w4HOGgXHpiu0qX0moFKytXQN67UW6LBZsz+1xNFF/aMIaKeyKOirAjQoriY/6Bgc2YLexlrh0IL8HuRS/X1+4IRgYl9G1UBBldJWtIqF9kelXrEfp9m9gy3NhHzSkXwlMpxwZzPoWGs/3WLPew2B3QOboBcDVrJ4UbryncQy35+BrnmPDWFgYa8FWtxErfWRKSCjTL1oTILPSXkgvw0abW6QHnKRrV5LRownk3L1JtR0oALmhx58Mrcm9HlI359aRc9ccWb6sRN5xij9QQHfmlNQEC", 1836, packet_15, &packet_15_size) != CHIAKI_ERR_SUCCESS || packet_15_size != 1377) return MUNIT_ERROR;
|
|
uint8_t nalu_15[1353]; size_t nalu_15_size = sizeof(nalu_15); if(chiaki_base64_decode("AC8AAAABQQBCJoETP/4AKfrf/32z4ob+nMCbUtuYYSus0s+798nlmNpb//ehnTRj0pJZPtaLz5JicNbcWAt0+xPI3cLa63Ptd4YiIqkmSbSnjA2RajTjzn7JmUKuB603eSdTcBMMh+OWcIsucXVaOzGkncruF/gCMZpssjPKmUch3IOa5b5Ub+oKcMpLL7+0plF7IPaDawitAsbVCLLR8ToSYMVG5QaIOMX+oe9b9yCZiVEK6PVRUAVN/YiAch63Rr6LBZAsW1kakiaEtdKk6dAdJs9uw96KWZqTva9ia89CaNtWIwrYZATG8hrej2xJPhD34RyS3yy6k/KV1resVUIH1yTsV6aqIXWNPuxeGlwRxXHGWk3WIlrmoPbwmfLzAVH9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tn9iKaiGK9t43FJ6uLcglIIlYbQY5InSS+AgK9VCuZOCOi6xAtWMeg34DHxd4IMd8mTZpWaeS66cn74fbsLkDNhr1CYfqmrtg/M+23g0YJ7kTT1DQaC7GbhgqB228OrrNX+zyFipeCmi5U925DCGQXTI8cZJ9E5vwU4npKpLwnW4kubC+D53EODM19vUrztpP/IsfeGAaVWA9XOgg7FV+PSZXNvhQeNEDsih6L9HUgtU2FcelwJzw6UBd8sGlgEDG1D26pQkuk9htcXgTUdB9MYH5isKxqTgjqEjVXkwPGcd4HK1E3RNOTy+hhg7bv6hdkTRkGbs3IReLKEX04FJHFT/zsVsnmqmFle5hQ", 1804, nalu_15, &nalu_15_size) != CHIAKI_ERR_SUCCESS || nalu_15_size != 1353) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_15;
|
|
memset(&av_packet_15, 0, sizeof(av_packet_15));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_15, &key_state, packet_15, sizeof(packet_15));
|
|
munit_assert(av_packet_15.is_video);
|
|
munit_assert_size(av_packet_15.data_size, ==, sizeof(nalu_15));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_15.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_15.data, av_packet_15.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_15), av_packet_15.data, nalu_15);
|
|
|
|
|
|
uint8_t packet_16[1356]; size_t packet_16_size = sizeof(packet_16); if(chiaki_base64_decode("EgAQAAIBwEQBA/YPlvkAADigAGoAASAziktJWYXDaOHqpOyID3vBIyzVoWyV2Ox3LIkGgwG2Egyp4l/sDCRt3YKeIyx8Z2e9V3OHuXqwlSKeYRHCXttw1IKwx+7eQ5D8Qo+d1uM+mMSOAOhN5kUnicllGRTtPAnf+XvMggZeWQkZjlQfYLXZryCivQv4g1wquB1NUTLUGhEdpbli7Rj4c1ZS0UEfKyxxp4yEAPlTKfXixdNsmJrXF1v7kRX11ERGvR07F3ZHUwZM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M/+CX7d0dLXn78GxAizQmZSRRCQKnrLtb+EqALS+y4zx3IbtYgABRWN27nc9p+AOLHhuPGP4ZZk+bJ0byYVJe1uk+ZDn2P2eShNnmm1dSQqbwYRWVSmCQYs6Diz3DGkTuUleJuydHbU75TWfL53ClK9Xin+NIpjOt73chhTfHtPdS+MEU6tog8ATDTeZ+/fqP4TsfAXg+4T5HEyuhNnBzr9yGCWXsm/a7KeEPqhJzl/cRIlnshRHT+uKpoWlQb0PjzPUlvQvSvCC3Eg7xiYcycxDO78GSHtvBheB1On7ecwBe+5bR06uKqTFxsHxPLzLG/9GY1h2R2Nu6GfKq3Ft7BEr3ncKJ5Ld92GHhaSokRJD+7UizaKMmbNvLnlbEuE+woo0Yoyz0GnhKFZfnzpmIE35OKiolLSsoYzB+WMohoaW8bRurSarIbpNDsel40r0ai4gYhvV/6", 1808, packet_16, &packet_16_size) != CHIAKI_ERR_SUCCESS || packet_16_size != 1356) return MUNIT_ERROR;
|
|
uint8_t nalu_16[1332]; size_t nalu_16_size = sizeof(nalu_16); if(chiaki_base64_decode("AEQAAAABQQBQJoETP/5gqzupgeUmA9dN7Z0HwyEyVrxRyX1zzBdDKwyMx3DiCi6IxDaGG3dCtmMyHNfsFUm0+716SPggjfOcwNUQu9bAEP8M/tqq54vAiuC6f45JQlt6NCN/KgZ1rKqEMJg7puSmOgFttfNPGse4BXqgwwWiNWoNSEGWNYOzKkgjqpmBkpnYLEVLjJylBOSx7ktd/AoPXggS0Ee0aV/BcWwTMIj2NBbsxfQ80EDnWCiAUfcC8fsw/sRLxqoetoRa6BSnshIJ0qtf2zPkVR6x4KpTLCTAgvV6mIp3EpAROIC1Bham3KzBk4ISMMQ9mb865Hy1GmEqI3Y3Qu/N4VN9Mm5t8QF/oxNG4tylkPRuiu2UmXemkQCoe181xE7IQNDhcdD7BHGXwKfY2WTwRVtXaPoeogAs2X5dL1H6gBpK3tBtSy5v8qs9k9hWifBYSVZgvyCC5jPFIibz2xGV4dahKeKy+9jtn1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L97MCbtl9NDBk7iy5tuHpjir69lpfp3vhnrf3gM2uNYdwquY31nZLsMGlTix5wOoGOwgf5Y8O/Lo8EF9G8J2pRwAGxhE28Qgds7lTExauZQZNAOuU8zRO+dNOmLgko16oYT1tenZQBiQUgP9g0dMZV155rQZdugNF/9yTeKcr7HlfXC+mfZjMDH0be2xTv461QSwEP3ig23B/yPga", 1776, nalu_16, &nalu_16_size) != CHIAKI_ERR_SUCCESS || nalu_16_size != 1332) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_16;
|
|
memset(&av_packet_16, 0, sizeof(av_packet_16));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_16, &key_state, packet_16, sizeof(packet_16));
|
|
munit_assert(av_packet_16.is_video);
|
|
munit_assert_size(av_packet_16.data_size, ==, sizeof(nalu_16));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_16.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_16.data, av_packet_16.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_16), av_packet_16.data, nalu_16);
|
|
|
|
|
|
uint8_t packet_17[1381]; size_t packet_17_size = sizeof(packet_17); if(chiaki_base64_decode("EgARAAIB4EQBAyk8f/gAAD3wAHMAAUAz/PrXb1GIqkfwcn4qD0MEN3vnucZpSKDH8qQBwxys0rujk//EU8LVBJP+gYP8ydJcfVwucn4P6WfD/SxB9tGCk7mh4NDXKqGjMjbo8FqmFW9uIUGhCmDyLgsL6lX/ZPX4Jy6tV2f0WwhappPOHfREnUy7yVRuNiZ9Pu8ynbUhbTAatvnTvnK005UikG3D8pfzYljzu6wwBGgDNcaD4VDcGUG9e6Xun1CRs5FtVqYCeLhZ/QEYHP1fgz5NIYEZUXK63euAXOC6wFoG/a/pV5T9WvTxl9u4V7RRFY/4EjtL0lQYcoQtR92hq2cEse+Mrq+I1J/KCRirtDr4TQk17EByjEb2ReHWB0PdGXzERPv5oJlLbzM1ux6qvTtJ8YExrIfVb7v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/2swfG9ECMj5kXwUDARg7e8MV7YLZa+wB9R8D4sh6rwNcQnYP3bR5KR8rIWDKxT2GT+66odLggT04vKy4MNPCbMxfVsffneI8ghDznMg2ldbq6r1QdS/B0dc+vJrjTcKEAR5I1q79AOxPbK+g6gGePsGCmLIKr7cduy4q2xwLxxNGwp43a0M49SKhKinMwuyNJrNkgmnKgWZIEdYYNi5FFYuZvw0bgbEG2gF0aALzc8tdrnU5w5KwqB9iCjcJjV6f56isEnkk+W1t/glPWS/vuzgxEPouVnDRlUAlJu3tBshj/sVqXRv/B7ny3Vjx5nB9avEcqRhWrIj8FLQ==", 1844, packet_17, &packet_17_size) != CHIAKI_ERR_SUCCESS || packet_17_size != 1381) return MUNIT_ERROR;
|
|
uint8_t nalu_17[1357]; size_t nalu_17_size = sizeof(nalu_17); if(chiaki_base64_decode("ACsAAAABQQBdZoETP/4BcBi6eH//n/hE9E0AGU6jeISCmHSuSkYE48UpajTn1ge+ZSgI1r83HaIk3BQ+BkwemI0sQMRrKiZcjARmSlQCWJCbR9872jquD9ABYEJAGtU3NwhCTOAgdkMDRxxic9WaUQpFgdQiOlaNwJIZchR1AHkUgolT5ylfEaqdG2pEXl/gkXGIKOc8SjrSAclp0yK+dv0ehD/9YiZWZgkOonMYZYITvohkJYLfb1Z/rRyHubqeGQ0JqKc3NLzRTckClacwsLztY8A+w1+pGGaJtUbD+VZbnrgTgWCN1xTSsLtZdVrVQkPzrO0ndxCT9m5x4PYqoL1vXe07NBes9IswTu+hlH5qPJcJNPUSX1Lqu1bIDJ34eIPiBSTG/fm3mSUag2CHVjaY+1ETpoqCO4iTZ86r1lh2n87e18GNGhQSf6YGgmZFsetILrG7VR4uEJUO5pYd1TmMgpbZbWzDF+xoCzOuIQS4MmJMLTqiT80+0pwHEgum9X5OaffFzBAOXTw2YPappXhj29eHgGA87/dWcstVD4FaP4a9JCzncTkEydm06T1xxuRl99+zmURxpBEhl0rypsZ6ParXsB3CvDIfnZ56gmZgVmpRn8VrlwRsq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yvDc2u2hlujbUKYCfKQ3EZNwvPSgRt9td91MEfBLGRqg6f4VrVeduPLA+z1kZYvv+UVh1s51bltGP0uAUYZaRjUWmGLpw==", 1812, nalu_17, &nalu_17_size) != CHIAKI_ERR_SUCCESS || nalu_17_size != 1357) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_17;
|
|
memset(&av_packet_17, 0, sizeof(av_packet_17));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_17, &key_state, packet_17, sizeof(packet_17));
|
|
munit_assert(av_packet_17.is_video);
|
|
munit_assert_size(av_packet_17.data_size, ==, sizeof(nalu_17));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_17.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_17.data, av_packet_17.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_17), av_packet_17.data, nalu_17);
|
|
|
|
|
|
|
|
// -- frame --
|
|
|
|
uint8_t packet_18[599]; size_t packet_18_size = sizeof(packet_18); if(chiaki_base64_decode("EgASAAICAEQBA2wBjlsAAENQADsAAWAzO/Uwhg3vaVoeDrHSwDaDd44PcTowhIymn4cBeWChpL2G4hKvozU7CslJ0nL8XBvBeL54ZcftRK+gpVL3pt/p4vWuatNmwu3i360lsvET7apDRQ3GIBElAaAPNzmNQRs9dkt4a080+Lac9Rom5YRQ23HEImp6C6wWFhd5vi1AuKxDpfNcKYxwuYTr1G5ZFSmtzHb6n/81Q4TkDb73C5yjMfeWyGJhF8H//wRn11umevrheXr7yE5yn/AmM4o28UJynUFgVMlzCIBRKcFYnXmsFd6qqeHubTk7ySVaDzjVB+5IdyYqrNvmb9sZsX9HqTB665z1/YhKXmprCU7DoozMNnyOk3fZTdg+zqu/CDHlzNkyX79AKQj5+JJItuokIhC5Odi4KpYAerzn+Asyxrn0jCVTVhBKHCjLljWDnlwltv8DuYn+Sjs9U0ibYNMWHSEtFVPxZ7hm+7ZYhzJUST85AYvfUJvGlPxCIxCDRJVvafHr9eXFnlG60VSEhQ9oMK64d2bSVogzdvQcuyIpb48j8/jDPKPuyLdqHA73MQITspbwAMWTmuA++iI/0M02HBgb8k2nX5RBZ0Dhk7PT8ur4RMKVAo/fAmqGVEyWBuw/82cI+aMjncg8OQ1U5rAm/6TsdSMcqqezFRPV3cSTOKkkYG99DmPg/Dq9+o/tzxnw8eCmpKScvgc36zbLGUeXgQQt9gVjC27Oaw1g+2uxfNGqnHyJgaRF8VXB0wEa2kxVxNLY8NUCFraGgN+m0EU3v2Q=", 800, packet_18, &packet_18_size) != CHIAKI_ERR_SUCCESS || packet_18_size != 599) return MUNIT_ERROR;
|
|
uint8_t nalu_18[575]; size_t nalu_18_size = sizeof(nalu_18); if(chiaki_base64_decode("AzkAAAABQQBrxoETP/4DLod9xZ//+BSjirzcvUbxJ95KK0Ee19Kalq2RQ91AYzQVIQ9E99RkATuO/f+KvumnreJFieP+U5mnhx/CctnpQyHYnvnrvdXT3hnlyBbsgpU1zc2jlF1jaY5kEQbeG5L0M3+NQ9/bk53oqs78qgEwrdcziIaqmoeO7VYRZ/++jgzdPfdUA0N8KCvYU/XZa2X08ee+XDWfMdK/GmalIP62Au+9d7yf+a2jJOm6AaBQG43p09Sk99KAXlVo//ETKe34uXsIvmYvhsvdqYzyRpBL6RW0/sR79zCGsRjcOw0w1Nv4LAN6ASwVaSiOAxlUimkRjT43IYNpGYQ70saaYUFgJwccUorGgQWvMLscA1TTZ2yK6yrHo6qBDXvVMZHNYmTZOsQCsv5YxFEhwx5+QT4C3a50NLsJY0GIrc34EBD67qOQp4b2Kjt43pY4ycLyter3+jykc+1ZtYlIe+Ecbwhf4cQWX6H6E4orOiGsB/1uZWU3MDDa0/6AgVULQ+6QDg7YjSBBNd8te2jWhJSQUd3F5apnbUBssSnb965s3CsqSvDq7IUV2P9PLlN/hpmOKlFrm41oVPRs0/1Lnu+Det4N3iAoSd4nVS88thuyhSs2Pb7y4G/FsWEaD0d8ic/IJRhahEqwSuTqUrYcD0Nx8XTDLBhjyGMamesNzN6EPahzsPs9UmflNGl09+z1+jXT3jWewRQlwojxPImQ4UgroZzcnPDLz/C4Hyo52GRRSKWbTUA=", 768, nalu_18, &nalu_18_size) != CHIAKI_ERR_SUCCESS || nalu_18_size != 575) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_18;
|
|
memset(&av_packet_18, 0, sizeof(av_packet_18));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_18, &key_state, packet_18, sizeof(packet_18));
|
|
munit_assert(av_packet_18.is_video);
|
|
munit_assert_size(av_packet_18.data_size, ==, sizeof(nalu_18));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_18.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_18.data, av_packet_18.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_18), av_packet_18.data, nalu_18);
|
|
|
|
|
|
uint8_t packet_19[1424]; size_t packet_19_size = sizeof(packet_19); if(chiaki_base64_decode("EgATAAICIEQBA1Xi8N0AAEWgAAAAAAAwp9BvtGA7UU6jZlRRJXCf7pEen2kKddGXtWhjPa3oa8Hc5TqGAWcFuYXb/ATp6LIeA+esT0ginLL5wG06nAMoT0Cp5YYIKt/qvVLiIS4b9uk1N57CsDYxierbDvuPb2rbexsF0AqSunZSSFQ/oDawzgFkgCzHZnIh5zsMCMjejRc/oz/un8MhkzVAi3c4RPiolb4e94dhr7ZIrDDyXflUOXPMNyantCGdzn7SoPSjbtNItrF6cs5LWl4CJ4uDY66FmWc3Zuwvrbh5Y0P4cmg+u5rPx5rkSywQJWS3sRl7HEBcu7ygdNvGafzONjAbgX2A949u6Jz7Z5RIsAosP9ptph63lYKRRxLXlFMkGPSemY31gJd7oAWAwoEccGvpgyEckH3kO1sY/zr3fFFVYxpYl4u0+3zoNqd5GNzinCTHzJj2NRR3U0EOhgckUwrHBnwYbY7RF8ee2/rMV+AJ4i9N3OfleiLLuoWiAvRYsh1xqK/Yz4ErnsYY0+bJcol65v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edzTMCvtcDOn2oOYbes1PuT+u2wHA18STnc3Dzhcq9g1QRAZ/9XzHi+5vbJFIPitSEZ20o3jqa0nxQAfKyA256PIrqSJWySAP0wIteRc3VwcaDa63b/lun9jjUxOTJ9sQJxugHsMBK9lmYqc6g9CbWsf/jaBI4qtuC8/SKld2zMBtsNgjnf6koSxJeGLqqQZwQBRLop+0tq+1OpYpzd/N7EFYy1LDhksPsSuT5cXqZMGeyfJGEjQ8UEUStSOaUCGKbydzfatqeSQrSRo=", 1900, packet_19, &packet_19_size) != CHIAKI_ERR_SUCCESS || packet_19_size != 1424) return MUNIT_ERROR;
|
|
uint8_t nalu_19[1400]; size_t nalu_19_size = sizeof(nalu_19); if(chiaki_base64_decode("jkAmjgh62+ShYsaNAK6USLqU8Pj6sI4SWVMKCfAgrirchF/Z2D8szFUbZ5cbyfsOnrvN19pb1tHIEz/8ynnCBxJdplqxN7JpVtGDnhERalikdZTr8YivgXdHbVecE65axzIMJlf454IyW5BXvvttnh80eItpJRXlfGo4hHmjLsm0toMXVPkeBE1znxC1nFXUpJ4dpdJaYKlNyv1dgPkdJLV0iHNWXyNpzw3n8k1haK/UdL73CQKfra3QEafn/vOi+CVSQ+HaA4c+VjU6kD11Ky4c98sO7ETAojaXZbwWC/YEJtYhMZHE1Bk33bKghQlTuQFBmgYr/vmYxkr/tAyxTof6sYXsXX/vBfpbSTnMcvMoPjV1h0u9inumWc6C2C2aFCW3oIeMCb7DsbaRRFS5Op2XkNTmcCqz9fNZUWIDNT527jjxtA7GqeNHFxDyeCmgc6mWfSeybwjoRpOinS6ObXHpJ8lZhCc3XpqMXynAJbZI5Aw2nnGC/+9tcmkUAcP0YuMEt+OxSJ1T+9o3B46wdfVShxNfeC8H1b5JzcRsDBDdkdSkXZFBZXCDvWSQxvTkAiUvQPrRq3lLYWu4bjc9VP8LNLOFHFNKbmgsL76lBUiqBPWA/O7clVbQ4WNf34ageyI69ofFHV0TMch0uOdAeQjxvIVNoLgjRvftCgJ4W/f1Oi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l/iLvLvoPPysUNvaVSwaqKhDQu0+N2T4xthwsPhL3aI1CVULTpj9cj3vhkUKPnh8aTuYVF82U6NDwyqtEdtzskewZAJD/eAk=", 1868, nalu_19, &nalu_19_size) != CHIAKI_ERR_SUCCESS || nalu_19_size != 1400) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_19;
|
|
memset(&av_packet_19, 0, sizeof(av_packet_19));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_19, &key_state, packet_19, sizeof(packet_19));
|
|
munit_assert(av_packet_19.is_video);
|
|
munit_assert_size(av_packet_19.data_size, ==, sizeof(nalu_19));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_19.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_19.data, av_packet_19.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_19), av_packet_19.data, nalu_19);
|
|
|
|
|
|
uint8_t packet_20[1349]; size_t packet_20_size = sizeof(packet_20); if(chiaki_base64_decode("AgAUAAMAABQBA6IyPEIAAFUwALYAFBLs1L4j7MMMkGN7Zz24OcaVjvQl5JsLzmalafevr6Jmi3mBkvMum8Qpq88O9Co8ZsGrpYBpWrBSQL2o1l1zJfg1PQkTP+pASmgifDpElJEMHEH+SW//WnheitWUvRQx+0xtMFAv44WHVO4b9HZGeegiKoXnruMj8NgIxE2P+Dy1XZ+noOBujGCWGxjnAyU+88d+PGNNNyQN3SsJDktTUJkMM6upjmVi9XqwYaIkTrR5faoqDadhzEBWdN9HwDjCb0dOCmbcKDRF+Qy6/IYfQjTqflVn/lpNI/LRQQMXsBE4IV1iJXJDFaOT6vn9NNv6XamkJoilfG53FQDRMsJr+LtUP8VpuDvLIDrG2qjBvlrHSnXqzA3Tvlt17SJE6eQ0BvTmjyK3DN+rKquDZa0vUDJhXeJwIVoImcsfkCOaDJp7NEt8EXSJNFkhr/LJlYJcqbqUh1yy6/ef+pNd6AJ/Jzm7ZkZQvwlv9cRjv+4nSYntudXd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fN6KIwbnSaf+9TE1sY0oMCSH4a8TR+E3Fjz/JF7AMaKojamGRNoxaWqz0IaRFHlJxEoO2JBv39sLBaLIskXTBruFpZp6+55ZTQV2SQ0NtHAMBTfUz5aFbUUAwKZFonKPgj9rI4QK72ihwF6ImKPZXuF0Z6W15aJq8ie7sAMMmgUeIvDNHBOY/kAeSDI0ZU=", 1800, packet_20, &packet_20_size) != CHIAKI_ERR_SUCCESS || packet_20_size != 1349) return MUNIT_ERROR;
|
|
uint8_t nalu_20[1328]; size_t nalu_20_size = sizeof(nalu_20); if(chiaki_base64_decode("AAQAAAABQZoIU/+45v4gLpLzVrxG1CUmTzquLbAitW2ubUnhPZh+TykGsqortqBDSsjIDASkbKUOO34M4ZHmWvbivhMQzSxPjP4GWtzqCG5rpXM74lX8DCQrI9+ZDpByzMydqpXmBZ1posLTxwn6evA6hwSmzin8w2NyVfZpofbQf91S5lCF6qMCK7qMN8UNZa1Rcvfci/s+XtU5KJMOy6EdCcZUmHAea7O8KpW8rmZ5WveA1tpeXNnrudynqIfE3kENVpOmLtiA0ztfohZ8zlRca2oN2Q65EHraHMFI6JMFWmhsOGnRJUOTNSIgKXcyteNem20E03nzTncIT8kIpLcyVcck/oQbgnnDNfxExDYmEBL9vZTHMNt44A9qfPs2bYtueUP6fYEMuSETyOAFrMECug/QQ00RN8J6Ebrqtdau6eIfrFMWBS6KHCCAPxc/MOtRkRwULsIZ4nXKw4MJExTp9Xg5qkgUEqYainkgs3wAQaxWRvpTh1Qb27Xhxq5YNBJNAZpO4Kw4K2G2806auItho7hqBWtha7JizfJdWxizeM5r72bn/F5/3n9/aQen98UuhKscK8ZYBD+0wAolx5TjcFUEHCg+NRT7o2KrYwfL6/vOeQdUDp7rfWsuTWQQkvYbL4qGhzs4+oGlGm3TxHUtjWYXwql/cEun4NCb4VisJyKA2+E3rm2uMERVQW6VSdEAf6y+QseMTv2JR3YH05IZFzmfBS7jBwwTlcwTF0QzYrNKcq7z/cLNOSEcJpRTuztpU7K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akionAVPacket av_packet_20;
|
|
memset(&av_packet_20, 0, sizeof(av_packet_20));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_20, &key_state, packet_20, sizeof(packet_20));
|
|
munit_assert(av_packet_20.is_video);
|
|
munit_assert_size(av_packet_20.data_size, ==, sizeof(nalu_20));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_20.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_20.data, av_packet_20.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_20), av_packet_20.data, nalu_20);
|
|
|
|
|
|
uint8_t packet_21[1334]; size_t packet_21_size = sizeof(packet_21); if(chiaki_base64_decode("AgAVAAMAIBQBA4bVRpIAAFpwAMgAYu/88xuha4N8fgx9p1NrR19djiQUA/JapudvDEPQqbZfQOF6jUcZQtnKKGNJ4UMGwufJ/uzDOhDdo8kcQ6P4774DuTAO102stOqTWp+oRqXIPyRqMW1uACM6dJmMErlvA9dUcDlJFsD0maqdx7NvZLNkNrdCa0W/bjBJz9/ejgzVTfxMjMoy7UNG6NdbyrOdD31q7+zE0GRk0KhaDsW1H6rkUZwMiyx40cDg8Q7KLCobPpAFAafxcL2IJxM1lwVTrDBf8/Wnx180xPSWj1E3NYgEJZS7AGtvfgvv6y6PTLvMJt5O+7iu7dkIf0Q9nIPeJvwld8tj4EWnx4IEs+kWtztcIvC3FKzp3lLNnPD6fkE4mzIZkVy6/lWZByk0cv1r8V4YPhtasA6zr0iTBvYCeY2qYLN0XbD+P5gLBsZ8gIl/DYoNJgEsYvjL7qVMAiE9zUCll/jUmsOr1UWAd9q2/0xnKrifdMhDPn54rgznywENzXvGGMlA0Z9SisBXB704FPNWecug7Jc0LmDrdjCDs78bFDORp9g+j/uEqfMesZVKx+afNalWPpJUsiUgxdNVMAEAxwQ7asTPgDDjSUsf1i1fgPMQTGSYKilKlFvYUoKKJ3bUu/xUSluoIctLaP4xi+dm434jkJMYr4nnSRGDtTUE3vBtm0f3L4BBcq8/vaVd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CHIAKI_ERR_SUCCESS || packet_21_size != 1334) return MUNIT_ERROR;
|
|
uint8_t nalu_21[1313]; size_t nalu_21_size = sizeof(nalu_21); if(chiaki_base64_decode("ABMAAAABQQFuaCEz/9AkXEmCxD1InUshQuverX4zNPuEk/X0V+zXfPhFvW8r3iiO8REpPnIFM3bN9r7ChCRotpIe9O5xq9zOveGEpTteMmF42K2Xx3WDQBVPjOTY9Dk6r3GSsMUlvQgHyavE8ryIyCN+K782jNsAekZeEXSQ997v6bbsDCNZ2uFDtW6bhgOKgvK1s6CSYJ4PQMdTSvTUBSGSV+NIXFViOTHGEeDj4HvbwGqXHu3EpI7931SGnUGPTsPM5qBFJ2FvldQzGyerLbzIuLp2W9pUmrhtjYv/RY3ygmvPbqCN9AV7O/+1XOWwKz5aks5RZvzWnUz34qt/NicR/PNFNeqFFiGp64B8dlxY9RnudIQ9QuETYU8aI5a3CJ1v5NtRQ++LbzdRad18/ERZoBhWh+R3fE+w3KyjljFynVQuvqk1TEOMpMhmDolMNW/j5bqzID3+NAtoMfc6wAkr7irReeb+e/GHSlee4df4HJAigSGECxolL6cDPrfKpSJGnV7WgfCxzE34JBrKgQbAuUcoHJLMdpvUICjueWLCn20nnP1zVN43ux/KqgJWT/bCCWXWKp8DrCdh/SkUltpLVnz1GOd8fDgywBmDduxC5Ggufs1tzOQZqXx17o7yeQRW7DFg1Psv73yjMF7N0oDjHLjmrxRsnmep/7miGr3/Rfhi+LiZIBa0viMt8mFrTi7+daRV9DgM4RsQQwilGRhjnVBhstI873dCZPxDKrPq5TD60g1b1MvV8cStRIt7WygDklJ+XWyVJ2dWCZr1x87TUS69F7XFBV5Fi9+o0HbxWku9sAbiTI754Vae4n1Ky6vtBX1lCLhwqpw4kW8eYx8/DffDcbu5PsE2j2SoaHaNGi7mG5u8dPIcf1F07Vaj2WVWYjm9M7rRqe5fYf0DhFngvgXdov10A/LgZioqteG2DTKwP50r/InD0a316A/YQxIE+odD6ZRzX9EmtrraxdesRNbQymyoQTBxsxf55L/kMyXDSt9aRJrlT7wH1dWUuRAGx+phM2JlTZd+WorQFUIyeX7sw5BvWs3lgjtoxPy2VrTJ/T3la90Co23N5Yd7QL2Vm+xtvEFZcVIgrn2ic3To3huCPdz/kYQJtU2+0jlLHVWhs7Vr0WC/Drzk/OUb16P06MqGdtI0Ny/BjsCEm3OTtTTXgcxBD/E50dVd3W1dYeqtmD0ndaTmruNouqxEyIeeDerL626nRPwU9kyhbGFXwKyPTeQEYrEp8hcHX63NH/Q43j01xy9vt+Ml1chN8QCPSyBnakCsdyelnqfwqEQIMcpAqA9EOXAUiuM8XABvcJ3vA9XJaGzAHAaP8sn0//NBgtbckVvccV3CK4Pr/uRuQ+tC2c9vx2N7Kp7ikd7pFlzU8NNu6hyK9RZPamwBoGn87I7v+9TMapFeJiG1YJusaZ40skIRu6Syt9eZuam32Vv5zEkb89bIGi/nX0BuTNyf1cFqt6mTMGjvvSnUTq0dHjUxUVrn1wAzSTRax/RUB3mCfTD9WB/scl215MS33vAh4wbw9qCA3Bao6ru/4A+kiOjpp8BVexLGnqcpzqTbPUpTp8qV7qVmAk/GN84DNLb7yzb0ObrXq+KGNfd9E12d5Zk0Jz+PlBtqpFDMe8sdOPXQnP4nSIdQ2qaazj987xhOlygZBF9GWbQFrv2zAfpgZffYQM74Ehhp66GD0Te2P48M7Rqcq2kR49i0k10Rp4qBRGmjeZch7Z1KPAtq1IA=", 1752, nalu_21, &nalu_21_size) != CHIAKI_ERR_SUCCESS || nalu_21_size != 1313) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_21;
|
|
memset(&av_packet_21, 0, sizeof(av_packet_21));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_21, &key_state, packet_21, sizeof(packet_21));
|
|
munit_assert(av_packet_21.is_video);
|
|
munit_assert_size(av_packet_21.data_size, ==, sizeof(nalu_21));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_21.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_21.data, av_packet_21.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_21), av_packet_21.data, nalu_21);
|
|
|
|
|
|
uint8_t packet_22[1352]; size_t packet_22_size = sizeof(packet_22); if(chiaki_base64_decode("AgAWAAMAQBQBA5x1jkoAAF+wAOoAddR1vKblyVOAkFtxOcRuknxzPV8OAMSQvNReqkkVInNeQVW9A1ci+unxnYjAQ+Db6Nsnn6yGAgXAS7vlfjkDYmMpMl/6Wp1wl5Vxa6O0bdc9yP13b/PGh07HaXEqWqc+Xo5iCbQBMnZzs9Uruxe4yWDoFgHQpzY9F1rMGRXGYwQW02DENHYqKCYUB9Iny41WT73tG5EfWHk8G0WBrf/vmTCs9CNBEanvNdBTnNu51QJQPcnQ9qPBC4PBL+fxN5fZzakznmrt4mCweB2oKb4gtgeymTEoIZPvpvDZXkv9sfRC0hHxowCUr+zMEGxOTQb6vk/yW+p+PxsyQEmLlVG6DtEwMqqheggorp9/rwWXmA8U/LRw5qDELfZOeCgmf2izUtUKFChbRoa734B4G7ywpwv7XWbd86Rd1w3FZJblYq0GNDOatsCgalhrQ0BazdoBnpOQr8+aUKJn/oep473I8LIOjGxfGroW6L997yvaiB0yq9PA855vWmnuTUPSzp/GJt8NikbhxkIMttBNblCl6/EwdBF2cSDIAqGhOAdwZU5bH1/fjUkQ0IisCLnrqD3pmNo1j9YyMS/awOp9s3wzLZnabBKHboo6Nln4b7hiwyZZ53jkMU9zA7jGQdjVF79i/CyONa/HKMLNo+Cr0ZwfquABu1zsoBhYPyL2pvUOcAS16VL4rEBruTeeSESSn2JJS9U6pP8T4cQvTaQ9O+KNWIvh3R4bIN6JMPPbEag/lo8AtczhHNJgTGYr5901uiygjR1FFc6koWIjjD1BJwS4SVnXaS11cOJKBGshBP1NGH83Kq6Bc/Xc4c7eVBd2QXTpBzb4FOUjB3yeAnGm+oIs8fDvA3M3Gb+TMzaCRYM4SPhXusHedQG1Ha1meg6tFtiwkQgf3EQbDrR7t5BC5LOMGOZR+4nn/hfkaVkqTJ8tkpFdMBh5aJS9wxWQfSRdPEh1ZLx8sxN+ldxN5eUyuJNTXHDkd18n+nOsAaBlxBJCx9+lkZ51WizAGWuY2sR1iepThIeWhh6IlN++PJJzr4yv4j+3BEGtdS8oOj6wBekw1MewKY+/dNXZeZpQT+UKcHrqMFgJiEBQYt7NeZKZ2xIhdp+/WJvrvQiv0NUeG5f92mQmEuQRW1GzS9N3qJwxXpXKn8BMlPKGN+rccaorN7kbBrzFcZ1tB7Rta8bYv3F7maJyctJpwFBNY6oGlTGL1geTvTZtu1mXZrQ9OC2oYVs4wfkoB3a5moItrLczysembAO6BCg1+QjV0qVw2Se7ZZ5nvb9KGmdYTXRC6ZGtXU22aQ/MQ6gvNqZ7uOO03SBPJ/NBnGzgsTeZ2N3CKBIp/bjayT4RN+ad5B95IOSlPCMX8/L1VjQDmog31tAvtlu7YKjvXTd7uGrbvibuQHmjFnat56R9HItsQzJyCp/bv5tgi2NSK2FY3s2zqe24HIMWzclZ5Q0b0bwjFSChhkUiVK42Kv28Yyw3QAz9WcpaSR/BNxYrJ1pfuZ6X/YHUqUhg8U0RzIllEYJDbTqrqh2fryU5ZcbamTQyB4+jCIWr/UOZrc75k8R0HaIPhbRxmSRYF7Gtta92+kmTmSpjnehs7JROjEfnBiZ7ArawnyWKAAhHihN1ryN9SQ0pwB02QoYPnb90rY2Pz/s9ieRrL30CZGftkPIrNXLjb/zGG6L9xwUCT9VqLBE3pIRAEUkDHdRjBYIDNmhCOVCtlwvo5ChLItltfaIVacnUcee78g77/sajnnbGoPC0EWCVq7OjJe5zekxAB/U=", 1804, packet_22, &packet_22_size) != CHIAKI_ERR_SUCCESS || packet_22_size != 1352) return MUNIT_ERROR;
|
|
uint8_t nalu_22[1331]; size_t nalu_22_size = sizeof(nalu_22); if(chiaki_base64_decode("AAEAAAABQQC/mghCT9fcMlPQ8f0wyc1mYW1UF/KMHKFKH6KCoTXA3ba2DCVkHWmoxH959gAb4Kx5KdlGQYlt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Z5nQUHFDjx0iP8rFUVVQBDCEsT2YbCyd7b67MYU9YlKpkIm0JorPiAYaLcVqZ6UB1PUtIrmjIlQd1mRfZvLoIKpM0e7m6bha+yT42Prmf6z4OJCFGp9WBkmTPGsedG67+8+KY16UmLgRfGRzkQhrS0IYUHkUb+LEtPQ68Ti+cLglBSskH/4glXGF3faWpXwnuW9nWIBuwliB7KUdJr0BBj4Xlz304EKYfqfkQ7vCaxw45IWlHydqgw/Pl3cy8JYG3e3qrjiSKSdVhWDrbdMNCVI0WMjDANudS5ngIVyZh5J6FRfdFoRTQSspeWyapoGOlD2wFRV7LYHSFHvQgVaychGyNQgWaOcxCf9yykxS4KtVtN42MUCKsmiFG77uhPIY4hFyxjWEHXlNg1pjSd80GGk1Ha2oayOVwwdHTytX+TofQocGo/QEDoz0KH1In22l67d86homGUHGruegaJu7Kl4kQPJKvYkZXfimYW5IPjn42NSb670PidWpL3Ba3SnJXcpdAJQkmsmZdHdTbOpvEUrjMAkEHRsGaw33Y+/1SGhfGRV43Enn7onoFrJC2YGnUKVIOrkq5p4jIp9W29ttx+T9beVb030apg=", 1776, nalu_22, &nalu_22_size) != CHIAKI_ERR_SUCCESS || nalu_22_size != 1331) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_22;
|
|
memset(&av_packet_22, 0, sizeof(av_packet_22));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_22, &key_state, packet_22, sizeof(packet_22));
|
|
munit_assert(av_packet_22.is_video);
|
|
munit_assert_size(av_packet_22.data_size, ==, sizeof(nalu_22));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_22.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_22.data, av_packet_22.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_22), av_packet_22.data, nalu_22);
|
|
|
|
|
|
uint8_t packet_23[1328]; size_t packet_23_size = sizeof(packet_23); if(chiaki_base64_decode("AgAXAAMAYBQBA8Hy0WkAAGU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zqeLPVqYfhhKd7wzS1yYKjklZiDerVq73LQAiZmzxZvwcc1w9siCk0lcuhbjmov0eDiOomOYDmodKRfuM56pzCjXNXCrt1GB/z8WgHvgpB4Ebxl3ZffebDYmxQBEhY8JgQIu7oDVKVpxXG9dXnbJlQdaHcBd+bLChf3zgpIQU5iwp0U+CdlQE12WjFzsm7HUi1w6BPisGVMwaoGskmd0Eaz6gwTBeFENQ32cbvYFGEJgBcl37i1XNSDFNl9B0O69Qmog1EQi9ZI4v3i1ego0ZxNe41c4aqD2JudNVzE+HFuDjXWxleERdENT8BSt87qNTz8fEDiYWVwjPnyzl4oGhCqSnI4tEXDz+0lPHG/Xx3ttyJnvAwEto9/iFgDvIHVc75MREqm98gWTJPVp0Tz5jFvuyBHvP2doGIqriw+FgzVffp6LKoVNIScEH8XFuVlV6c7C/bhofDpV5AW3aVcAgw3uD+fHhC8W6EO2yTBUNSH68IU8ukXQgO01QZ//sG7LU5SMV7sw0MzULb5qYqH3pE7FtSGlyavo4vfvH6X31SnNQR42DeZIcI8n/77mJTtK5QKTB99obSU0nDxsrF8yBffRu9nOD7elMCVwAqUm4sPs5CQ2MSk4E7d2VP35IU4nZG2ywawR+WbHCp0C/bwAO/rvPLgg=", 1772, packet_23, &packet_23_size) != CHIAKI_ERR_SUCCESS || packet_23_size != 1328) return MUNIT_ERROR;
|
|
uint8_t nalu_23[1307]; size_t nalu_23_size = sizeof(nalu_23); if(chiaki_base64_decode("ABkAAAABQQBNJoIQg//eoqCWu3zz+HXFAKq32pQyBi8LkfNPdF1/9RYsjLS7cMNmBGUt0WmWd63aYl5jgl8E7AL+MMB8lb+8Udv9TJf2U1TeMAISiYl/4lNxbQpPjerAYqD4WZDQU6yeaYwSg2yqYc8QTOwCHD3Z0ETXgz7R+3vw1SxsijSubShUmugvuDxIEqNLATEgaMdFOBcEVWZPrnGw2KWjy1/eYFSaPq9s+SQnsRinmkSBWNGNxwlfesIica184uEqwFClFe7btI1G0DsW6SUyl3WSnX8NYDnl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yGxbpq3LEPiZgPUYO3HbPfjvv3Jr7ms9c1UHBqGlD5x3YcOgb0zEsmOgWhrI+k0+CJr2IvAr+GJ6l+FH3PBbmq33gznHLkrk7cfD1GxSs69RCYpH+iLMCiCISujV1Xiiy55CyeYuREX+uW7BmyzYZkZ1/oIrppSwBuGonVmiaByUISxkLIRQ922jWRhXjLCvGZMNCBFNL305alBdhmB1SQyfBn+Ht0ZVAodLeAldHckvh8Q2jfxdeF26vvKeDZcN4vEg5/9PhGriGXE3IwwGyLqQRogw3KImSsovTj/2qhvXLtWe93G0UuPnRZ1c2NXGQUNvRylUbfdkxgUkHxVVrwjWAFDt812YuNz/PG3vwpoY9uccGkzZhvA=", 1744, nalu_23, &nalu_23_size) != CHIAKI_ERR_SUCCESS || nalu_23_size != 1307) return MUNIT_ERROR;
|
|
|
|
|
|
ChiakiTakionAVPacket av_packet_23;
|
|
memset(&av_packet_23, 0, sizeof(av_packet_23));
|
|
chiaki_takion_v9_av_packet_parse(&av_packet_23, &key_state, packet_23, sizeof(packet_23));
|
|
munit_assert(av_packet_23.is_video);
|
|
munit_assert_size(av_packet_23.data_size, ==, sizeof(nalu_23));
|
|
chiaki_gkcrypt_decrypt(&gkcrypt, av_packet_23.key_pos + CHIAKI_GKCRYPT_BLOCK_SIZE, av_packet_23.data, av_packet_23.data_size);
|
|
munit_assert_memory_equal(sizeof(nalu_23), av_packet_23.data, nalu_23);
|
|
|
|
|
|
|
|
// -- frame --
|
|
|
|
// packets: 128, nalus: 96
|
|
chiaki_gkcrypt_fini(&gkcrypt);
|
|
// testcasetoc.py generated code end
|