{"action":"created","comment":{"url":"https://api.github.com/repos/openssl/openssl/pulls/comments/112151725","pull_request_review_id":33443251,"id":112151725,"diff_hunk":"@@ -1,454 +1,1289 @@\n-/*\n- * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.\n- *\n- * Licensed under the OpenSSL license (the \"License\").  You may not use\n- * this file except in compliance with the License.  You can obtain a copy\n- * in the file LICENSE in the source distribution or at\n- * https://www.openssl.org/source/license.html\n- */\n-\n-/* ====================================================================\n- * Copyright (c) 2017 Oracle and/or its affiliates.  All rights reserved.\n- */\n-\n-#include <assert.h>\n-#include <openssl/e_os2.h>\n-#include <string.h>\n-#include \"internal/aria.h\"\n-\n-static const unsigned char sb1[256] = {\n-    0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5,\n-    0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,\n-    0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,\n-    0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0,\n-    0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc,\n-    0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,\n-    0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a,\n-    0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75,\n-    0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,\n-    0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84,\n-    0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b,\n-    0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,\n-    0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85,\n-    0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8,\n-    0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,\n-    0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2,\n-    0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17,\n-    0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,\n-    0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88,\n-    0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb,\n-    0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,\n-    0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79,\n-    0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9,\n-    0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,\n-    0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6,\n-    0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a,\n-    0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,\n-    0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e,\n-    0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94,\n-    0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,\n-    0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68,\n-    0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16\n-};\n-\n-static const unsigned char sb2[256] = {\n-    0xe2, 0x4e, 0x54, 0xfc, 0x94, 0xc2, 0x4a, 0xcc,\n-    0x62, 0x0d, 0x6a, 0x46, 0x3c, 0x4d, 0x8b, 0xd1,\n-    0x5e, 0xfa, 0x64, 0xcb, 0xb4, 0x97, 0xbe, 0x2b,\n-    0xbc, 0x77, 0x2e, 0x03, 0xd3, 0x19, 0x59, 0xc1,\n-    0x1d, 0x06, 0x41, 0x6b, 0x55, 0xf0, 0x99, 0x69,\n-    0xea, 0x9c, 0x18, 0xae, 0x63, 0xdf, 0xe7, 0xbb,\n-    0x00, 0x73, 0x66, 0xfb, 0x96, 0x4c, 0x85, 0xe4,\n-    0x3a, 0x09, 0x45, 0xaa, 0x0f, 0xee, 0x10, 0xeb,\n-    0x2d, 0x7f, 0xf4, 0x29, 0xac, 0xcf, 0xad, 0x91,\n-    0x8d, 0x78, 0xc8, 0x95, 0xf9, 0x2f, 0xce, 0xcd,\n-    0x08, 0x7a, 0x88, 0x38, 0x5c, 0x83, 0x2a, 0x28,\n-    0x47, 0xdb, 0xb8, 0xc7, 0x93, 0xa4, 0x12, 0x53,\n-    0xff, 0x87, 0x0e, 0x31, 0x36, 0x21, 0x58, 0x48,\n-    0x01, 0x8e, 0x37, 0x74, 0x32, 0xca, 0xe9, 0xb1,\n-    0xb7, 0xab, 0x0c, 0xd7, 0xc4, 0x56, 0x42, 0x26,\n-    0x07, 0x98, 0x60, 0xd9, 0xb6, 0xb9, 0x11, 0x40,\n-    0xec, 0x20, 0x8c, 0xbd, 0xa0, 0xc9, 0x84, 0x04,\n-    0x49, 0x23, 0xf1, 0x4f, 0x50, 0x1f, 0x13, 0xdc,\n-    0xd8, 0xc0, 0x9e, 0x57, 0xe3, 0xc3, 0x7b, 0x65,\n-    0x3b, 0x02, 0x8f, 0x3e, 0xe8, 0x25, 0x92, 0xe5,\n-    0x15, 0xdd, 0xfd, 0x17, 0xa9, 0xbf, 0xd4, 0x9a,\n-    0x7e, 0xc5, 0x39, 0x67, 0xfe, 0x76, 0x9d, 0x43,\n-    0xa7, 0xe1, 0xd0, 0xf5, 0x68, 0xf2, 0x1b, 0x34,\n-    0x70, 0x05, 0xa3, 0x8a, 0xd5, 0x79, 0x86, 0xa8,\n-    0x30, 0xc6, 0x51, 0x4b, 0x1e, 0xa6, 0x27, 0xf6,\n-    0x35, 0xd2, 0x6e, 0x24, 0x16, 0x82, 0x5f, 0xda,\n-    0xe6, 0x75, 0xa2, 0xef, 0x2c, 0xb2, 0x1c, 0x9f,\n-    0x5d, 0x6f, 0x80, 0x0a, 0x72, 0x44, 0x9b, 0x6c,\n-    0x90, 0x0b, 0x5b, 0x33, 0x7d, 0x5a, 0x52, 0xf3,\n-    0x61, 0xa1, 0xf7, 0xb0, 0xd6, 0x3f, 0x7c, 0x6d,\n-    0xed, 0x14, 0xe0, 0xa5, 0x3d, 0x22, 0xb3, 0xf8,\n-    0x89, 0xde, 0x71, 0x1a, 0xaf, 0xba, 0xb5, 0x81\n-};\n-\n-static const unsigned char sb3[256] = {\n-    0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38,\n-    0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb,\n-    0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,\n-    0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb,\n-    0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d,\n-    0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,\n-    0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2,\n-    0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25,\n-    0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,\n-    0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92,\n-    0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda,\n-    0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,\n-    0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a,\n-    0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06,\n-    0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,\n-    0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b,\n-    0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea,\n-    0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,\n-    0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85,\n-    0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e,\n-    0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,\n-    0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b,\n-    0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20,\n-    0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,\n-    0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31,\n-    0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f,\n-    0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,\n-    0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef,\n-    0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0,\n-    0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,\n-    0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26,\n-    0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d\n-};\n-\n-static const unsigned char sb4[256] = {\n-    0x30, 0x68, 0x99, 0x1b, 0x87, 0xb9, 0x21, 0x78,\n-    0x50, 0x39, 0xdb, 0xe1, 0x72, 0x09, 0x62, 0x3c,\n-    0x3e, 0x7e, 0x5e, 0x8e, 0xf1, 0xa0, 0xcc, 0xa3,\n-    0x2a, 0x1d, 0xfb, 0xb6, 0xd6, 0x20, 0xc4, 0x8d,\n-    0x81, 0x65, 0xf5, 0x89, 0xcb, 0x9d, 0x77, 0xc6,\n-    0x57, 0x43, 0x56, 0x17, 0xd4, 0x40, 0x1a, 0x4d,\n-    0xc0, 0x63, 0x6c, 0xe3, 0xb7, 0xc8, 0x64, 0x6a,\n-    0x53, 0xaa, 0x38, 0x98, 0x0c, 0xf4, 0x9b, 0xed,\n-    0x7f, 0x22, 0x76, 0xaf, 0xdd, 0x3a, 0x0b, 0x58,\n-    0x67, 0x88, 0x06, 0xc3, 0x35, 0x0d, 0x01, 0x8b,\n-    0x8c, 0xc2, 0xe6, 0x5f, 0x02, 0x24, 0x75, 0x93,\n-    0x66, 0x1e, 0xe5, 0xe2, 0x54, 0xd8, 0x10, 0xce,\n-    0x7a, 0xe8, 0x08, 0x2c, 0x12, 0x97, 0x32, 0xab,\n-    0xb4, 0x27, 0x0a, 0x23, 0xdf, 0xef, 0xca, 0xd9,\n-    0xb8, 0xfa, 0xdc, 0x31, 0x6b, 0xd1, 0xad, 0x19,\n-    0x49, 0xbd, 0x51, 0x96, 0xee, 0xe4, 0xa8, 0x41,\n-    0xda, 0xff, 0xcd, 0x55, 0x86, 0x36, 0xbe, 0x61,\n-    0x52, 0xf8, 0xbb, 0x0e, 0x82, 0x48, 0x69, 0x9a,\n-    0xe0, 0x47, 0x9e, 0x5c, 0x04, 0x4b, 0x34, 0x15,\n-    0x79, 0x26, 0xa7, 0xde, 0x29, 0xae, 0x92, 0xd7,\n-    0x84, 0xe9, 0xd2, 0xba, 0x5d, 0xf3, 0xc5, 0xb0,\n-    0xbf, 0xa4, 0x3b, 0x71, 0x44, 0x46, 0x2b, 0xfc,\n-    0xeb, 0x6f, 0xd5, 0xf6, 0x14, 0xfe, 0x7c, 0x70,\n-    0x5a, 0x7d, 0xfd, 0x2f, 0x18, 0x83, 0x16, 0xa5,\n-    0x91, 0x1f, 0x05, 0x95, 0x74, 0xa9, 0xc1, 0x5b,\n-    0x4a, 0x85, 0x6d, 0x13, 0x07, 0x4f, 0x4e, 0x45,\n-    0xb2, 0x0f, 0xc9, 0x1c, 0xa6, 0xbc, 0xec, 0x73,\n-    0x90, 0x7b, 0xcf, 0x59, 0x8f, 0xa1, 0xf9, 0x2d,\n-    0xf2, 0xb1, 0x00, 0x94, 0x37, 0x9f, 0xd0, 0x2e,\n-    0x9c, 0x6e, 0x28, 0x3f, 0x80, 0xf0, 0x3d, 0xd3,\n-    0x25, 0x8a, 0xb5, 0xe7, 0x42, 0xb3, 0xc7, 0xea,\n-    0xf7, 0x4c, 0x11, 0x33, 0x03, 0xa2, 0xac, 0x60\n-};\n-\n-static const ARIA_u128 c1 = {\n-    0x51, 0x7c, 0xc1, 0xb7, 0x27, 0x22, 0x0a, 0x94,\n-    0xfe, 0x13, 0xab, 0xe8, 0xfa, 0x9a, 0x6e, 0xe0\n-};\n-\n-static const ARIA_u128 c2 = {\n-    0x6d, 0xb1, 0x4a, 0xcc, 0x9e, 0x21, 0xc8, 0x20,\n-    0xff, 0x28, 0xb1, 0xd5, 0xef, 0x5d, 0xe2, 0xb0\n-};\n-\n-static const ARIA_u128 c3 = {\n-    0xdb, 0x92, 0x37, 0x1d, 0x21, 0x26, 0xe9, 0x70,\n-    0x03, 0x24, 0x97, 0x75, 0x04, 0xe8, 0xc9, 0x0e\n-};\n-\n-/*\n- * Exclusive or two 128 bit values into the result.\n- * It is safe for the result to be the same as the either input.\n- */\n-static void xor128(ARIA_u128 o, const ARIA_u128 x, const ARIA_u128 y)\n-{\n-    int i;\n-\n-    for (i = 0; i < ARIA_BLOCK_SIZE; i++)\n-        o[i] = x[i] ^ y[i];\n-}\n-\n-/*\n- * Generalised circular rotate right and exclusive or function.\n- * It is safe for the output to overlap either input.\n- */\n-static ossl_inline void rotnr(unsigned int n, ARIA_u128 o, const ARIA_u128 xor,\n-                              const ARIA_u128 z)\n-{\n-    const unsigned int bytes = n / 8, bits = n % 8;\n-    unsigned int i;\n-    ARIA_u128 t;\n-\n-    for (i = 0; i < ARIA_BLOCK_SIZE; i++)\n-        t[(i + bytes) % ARIA_BLOCK_SIZE] = z[i];\n-    for (i = 0; i < ARIA_BLOCK_SIZE; i++)\n-        o[i] = ((t[i] >> bits) |\n-                (t[i ? i - 1 : ARIA_BLOCK_SIZE - 1] << (8 - bits))) ^ xor[i];\n-}\n-\n-/*\n- * Circular rotate 19 bits right and xor.\n- * It is safe for the output to overlap either input.\n- */\n-static void rot19r(ARIA_u128 o, const ARIA_u128 xor, const ARIA_u128 z)\n-{\n-    rotnr(19, o, xor, z);\n-}\n-\n-/*\n- * Circular rotate 31 bits right and xor.\n- * It is safe for the output to overlap either input.\n- */\n-static void rot31r(ARIA_u128 o, const ARIA_u128 xor, const ARIA_u128 z)\n-{\n-    rotnr(31, o, xor, z);\n-}\n-\n-/*\n- * Circular rotate 61 bits left and xor.\n- * It is safe for the output to overlap either input.\n- */\n-static void rot61l(ARIA_u128 o, const ARIA_u128 xor, const ARIA_u128 z)\n-{\n-    rotnr(8 * ARIA_BLOCK_SIZE - 61, o, xor, z);\n-}\n-\n-/*\n- * Circular rotate 31 bits left and xor.\n- * It is safe for the output to overlap either input.\n- */\n-static void rot31l(ARIA_u128 o, const ARIA_u128 xor, const ARIA_u128 z)\n-{\n-    rotnr(8 * ARIA_BLOCK_SIZE - 31, o, xor, z);\n-}\n-\n-/*\n- * Circular rotate 19 bits left and xor.\n- * It is safe for the output to overlap either input.\n- */\n-static void rot19l(ARIA_u128 o, const ARIA_u128 xor, const ARIA_u128 z)\n-{\n-    rotnr(8 * ARIA_BLOCK_SIZE - 19, o, xor, z);\n-}\n-\n-/*\n- * First substitution and xor layer, used for odd steps.\n- * It is safe for the input and output to be the same.\n- */\n-static void sl1(ARIA_u128 o, const ARIA_u128 x, const ARIA_u128 y)\n-{\n-    unsigned int i;\n-    for (i = 0; i < ARIA_BLOCK_SIZE; i += 4) {\n-        o[i    ] = sb1[x[i    ] ^ y[i    ]];\n-        o[i + 1] = sb2[x[i + 1] ^ y[i + 1]];\n-        o[i + 2] = sb3[x[i + 2] ^ y[i + 2]];\n-        o[i + 3] = sb4[x[i + 3] ^ y[i + 3]];\n-    }\n-}\n-\n-/*\n- * Second substitution and xor layer, used for even steps.\n- * It is safe for the input and output to be the same.\n- */\n-static void sl2(ARIA_u128 o, const ARIA_u128 x, const ARIA_u128 y)\n-{\n-    unsigned int i;\n-    for (i = 0; i < ARIA_BLOCK_SIZE; i += 4) {\n-        o[i    ] = sb3[x[i    ] ^ y[i    ]];\n-        o[i + 1] = sb4[x[i + 1] ^ y[i + 1]];\n-        o[i + 2] = sb1[x[i + 2] ^ y[i + 2]];\n-        o[i + 3] = sb2[x[i + 3] ^ y[i + 3]];\n-    }\n-}\n-\n-/*\n- * Diffusion layer step\n- * It is NOT safe for the input and output to overlap.\n- */\n-static void a(ARIA_u128 y, const ARIA_u128 x)\n-{\n-    y[ 0] = x[3] ^ x[4] ^ x[6] ^ x[ 8] ^ x[ 9] ^ x[13] ^ x[14];\n-    y[ 1] = x[2] ^ x[5] ^ x[7] ^ x[ 8] ^ x[ 9] ^ x[12] ^ x[15];\n-    y[ 2] = x[1] ^ x[4] ^ x[6] ^ x[10] ^ x[11] ^ x[12] ^ x[15];\n-    y[ 3] = x[0] ^ x[5] ^ x[7] ^ x[10] ^ x[11] ^ x[13] ^ x[14];\n-    y[ 4] = x[0] ^ x[2] ^ x[5] ^ x[ 8] ^ x[11] ^ x[14] ^ x[15];\n-    y[ 5] = x[1] ^ x[3] ^ x[4] ^ x[ 9] ^ x[10] ^ x[14] ^ x[15];\n-    y[ 6] = x[0] ^ x[2] ^ x[7] ^ x[ 9] ^ x[10] ^ x[12] ^ x[13];\n-    y[ 7] = x[1] ^ x[3] ^ x[6] ^ x[ 8] ^ x[11] ^ x[12] ^ x[13];\n-    y[ 8] = x[0] ^ x[1] ^ x[4] ^ x[ 7] ^ x[10] ^ x[13] ^ x[15];\n-    y[ 9] = x[0] ^ x[1] ^ x[5] ^ x[ 6] ^ x[11] ^ x[12] ^ x[14];\n-    y[10] = x[2] ^ x[3] ^ x[5] ^ x[ 6] ^ x[ 8] ^ x[13] ^ x[15];\n-    y[11] = x[2] ^ x[3] ^ x[4] ^ x[ 7] ^ x[ 9] ^ x[12] ^ x[14];\n-    y[12] = x[1] ^ x[2] ^ x[6] ^ x[ 7] ^ x[ 9] ^ x[11] ^ x[12];\n-    y[13] = x[0] ^ x[3] ^ x[6] ^ x[ 7] ^ x[ 8] ^ x[10] ^ x[13];\n-    y[14] = x[0] ^ x[3] ^ x[4] ^ x[ 5] ^ x[ 9] ^ x[11] ^ x[14];\n-    y[15] = x[1] ^ x[2] ^ x[4] ^ x[ 5] ^ x[ 8] ^ x[10] ^ x[15];\n-}\n-\n-/*\n- * Odd round function\n- * Apply the first substitution layer and then a diffusion step.\n- * It is safe for the input and output to overlap.\n- */\n-static ossl_inline void FO(ARIA_u128 o, const ARIA_u128 d, const ARIA_u128 rk)\n-{\n-\tARIA_u128 y;\n-\n-\tsl1(y, d, rk);\n-\ta(o, y);\n-}\n-\n-/*\n- * Even round function\n- * Apply the second substitution layer and then a diffusion step.\n- * It is safe for the input and output to overlap.\n- */\n-static ossl_inline void FE(ARIA_u128 o, const ARIA_u128 d, const ARIA_u128 rk)\n-{\n-\tARIA_u128 y;\n-\n-\tsl2(y, d, rk);\n-\ta(o, y);\n-}\n-\n-/*\n- * Encrypt or decrypt a single block\n- * in and out can overlap\n- */\n-static void do_encrypt(ARIA_u128 o, const ARIA_u128 pin, unsigned int rounds,\n-                       const ARIA_u128 *keys)\n-{\n-    ARIA_u128 p;\n-    unsigned int i;\n-\n-    memcpy(p, pin, sizeof(p));\n-    for (i = 0; i < rounds - 2; i += 2) {\n-        FO(p, p, keys[i]);\n-        FE(p, p, keys[i + 1]);\n-    }\n-    FO(p, p, keys[rounds - 2]);\n-    sl2(o, p, keys[rounds - 1]);\n-    xor128(o, o, keys[rounds]);\n-}\n-\n-/*\n- * Encrypt a single block\n- * in and out can overlap\n- */\n-void aria_encrypt(const unsigned char *in, unsigned char *out,\n-                  const ARIA_KEY *key)\n-{\n-    assert(in != NULL && out != NULL && key != NULL);\n-    do_encrypt(out, in, key->rounds, key->rd_key);\n-}\n-\n-\n-/*\n- * Expand the cipher key into the encryption key schedule.\n- * We short circuit execution of the last two\n- * or four rotations based on the key size.\n- */\n-int aria_set_encrypt_key(const unsigned char *userKey, const int bits,\n-                         ARIA_KEY *key)\n-{\n-    const unsigned char *ck1, *ck2, *ck3;\n-    ARIA_u128 kr, w0, w1, w2, w3;\n-\n-    if (!userKey || !key)\n-        return -1;\n-    memcpy(w0, userKey, sizeof(w0));\n-    switch (bits) {\n-    default:\n-        return -2;\n-    case 128:\n-        key->rounds = 12;\n-        ck1 = c1;\n-        ck2 = c2;\n-        ck3 = c3;\n-        memset(kr, 0, sizeof(kr));\n-        break;\n-\n-    case 192:\n-        key->rounds = 14;\n-        ck1 = c2;\n-        ck2 = c3;\n-        ck3 = c1;\n-        memcpy(kr, userKey + ARIA_BLOCK_SIZE, sizeof(kr) / 2);\n-        memset(kr + ARIA_BLOCK_SIZE / 2, 0, sizeof(kr) / 2);\n-        break;\n-\n-    case 256:\n-        key->rounds = 16;\n-        ck1 = c3;\n-        ck2 = c1;\n-        ck3 = c2;\n-        memcpy(kr, userKey + ARIA_BLOCK_SIZE, sizeof(kr));\n-        break;\n-    }\n-\n-    FO(w3, w0, ck1);\txor128(w1, w3, kr);\n-    FE(w3, w1, ck2);\txor128(w2, w3, w0);\n-    FO(kr, w2, ck3);\txor128(w3, kr, w1);\n-\n-    rot19r(key->rd_key[ 0], w0, w1);\n-    rot19r(key->rd_key[ 1], w1, w2);\n-    rot19r(key->rd_key[ 2], w2, w3);\n-    rot19r(key->rd_key[ 3], w3, w0);\n-\n-    rot31r(key->rd_key[ 4], w0, w1);\n-    rot31r(key->rd_key[ 5], w1, w2);\n-    rot31r(key->rd_key[ 6], w2, w3);\n-    rot31r(key->rd_key[ 7], w3, w0);\n-\n-    rot61l(key->rd_key[ 8], w0, w1);\n-    rot61l(key->rd_key[ 9], w1, w2);\n-    rot61l(key->rd_key[10], w2, w3);\n-    rot61l(key->rd_key[11], w3, w0);\n-\n-    rot31l(key->rd_key[12], w0, w1);\n-    if (key->rounds > 12) {\n-        rot31l(key->rd_key[13], w1, w2);\n-        rot31l(key->rd_key[14], w2, w3);\n-\n-        if (key->rounds > 14) {\n-            rot31l(key->rd_key[15], w3, w0);\n-            rot19l(key->rd_key[16], w0, w1);\n-        }\n-    }\n-    return 0;\n-}\n-\n-/*\n- * Expand the cipher key into the decryption key schedule.\n- */\n-int aria_set_decrypt_key(const unsigned char *userKey, const int bits,\n-                         ARIA_KEY *key)\n-{\n-    ARIA_KEY ek;\n-    const int r = aria_set_encrypt_key(userKey, bits, &ek);\n-    unsigned int i, rounds = ek.rounds;\n-\n-    if (r == 0) {\n-        key->rounds = rounds;\n-        memcpy(key->rd_key[0], ek.rd_key[rounds], sizeof(key->rd_key[0]));\n-        for (i = 1; i < rounds; i++)\n-            a(key->rd_key[i], ek.rd_key[rounds - i]);\n-        memcpy(key->rd_key[rounds], ek.rd_key[0], sizeof(key->rd_key[rounds]));\n-    }\n-    return r;\n-}\n+/*\r\n+ * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.\r\n+ *\r\n+ * Licensed under the OpenSSL license (the \"License\").  You may not use\r\n+ * this file except in compliance with the License.  You can obtain a copy\r\n+ * in the file LICENSE in the source distribution or at\r\n+ * https://www.openssl.org/source/license.html\r\n+ */\r\n+\r\n+/* \r\n+ * Copyright (C) 2017 National Security Research Institute. All Rights Reserved.\r\n+ *\r\n+ * Information for ARIA\r\n+ *     http://210.104.33.10/ARIA/index-e.html (English)\r\n+ *     http://seed.kisa.or.kr/ (Korean)\r\n+ *\r\n+ * Public domain version is distributed above.\r\n+ */\r\n+\r\n+/* ====================================================================\r\n+ * Copyright (c) 2017 Oracle and/or its affiliates.  All rights reserved.\r\n+ */\r\n+\r\n+#include <openssl/e_os2.h>\r\n+#include \"internal/aria.h\"\r\n+\r\n+#include <assert.h>\r\n+#include <string.h>\r\n+#include <stddef.h>\r\n+\r\n+#ifndef OPENSSL_SMALL_FOOTPRINT\r\n+\r\n+/* Begin macro */\r\n+#ifndef __has_builtin\r\n+# define __has_builtin(x) 0\r\n+#endif\r\n+\r\n+#if !defined(B_ENDIAN) && !defined(L_ENDIAN)\r\n+# if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && \\\r\n+    (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)\r\n+#  define B_ENDIAN\r\n+# elif defined(__BIG_ENDIAN__) || \\\r\n+    defined(_M_PPC) || defined(_M_MPPC) || \\\r\n+    defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \\\r\n+    defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__)\r\n+#  define B_ENDIAN\r\n+# endif\r\n+#endif\r\n+\r\n+/* rotation */\r\n+#if defined(_MSC_VER)\r\n+# include <stdlib.h>\r\n+# define rotl32(v, r) _lrotl(v, r)\r\n+# define rotr32(v, r) _lrotr(v, r)\r\n+#else\r\n+# define rotl32(v, r) (((uint32_t)(v) << (r)) | ((uint32_t)(v) >> (32 - r)))\r\n+# define rotr32(v, r) (((uint32_t)(v) >> (r)) | ((uint32_t)(v) << (32 - r)))\r\n+#endif\r\n+\r\n+#if defined(_MSC_VER) && _MSC_VER >= 1400\r\n+# define bswap32(v) _byteswap_ulong(v)\r\n+#elif __has_builtin(__builtin_bswap32)\r\n+# define bswap32(v) __builtin_bswap32(v)\r\n+#elif (defined(__GNUC__) && \\\r\n+    ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))\r\n+# define bswap32(v) __builtin_bswap32(v)\r\n+#else\r\n+# define bswap32(v)                                         \\\r\n+    (((v) << 24) ^ ((v) >> 24) ^                            \\\r\n+    (((v) & 0x0000ff00) << 8) ^ (((v) & 0x00ff0000) >> 8)\r\n+#endif\r\n+\r\n+/* Load Big-Endian Integer */\r\n+#ifndef B_ENDIAN\r\n+# define loadBE32(v) bswap32(v)\r\n+#else\r\n+# define loadBE32(v) ((uint32_t)(v))\r","path":"crypto/aria/aria.c","position":531,"original_position":531,"commit_id":"c1577675dfcfe7bba99b179c040f4ca5037a326d","original_commit_id":"c1577675dfcfe7bba99b179c040f4ca5037a326d","user":{"login":"dot-asm","id":9038069,"avatar_url":"https://avatars1.githubusercontent.com/u/9038069?v=3","gravatar_id":"","url":"https://api.github.com/users/dot-asm","html_url":"https://github.com/dot-asm","followers_url":"https://api.github.com/users/dot-asm/followers","following_url":"https://api.github.com/users/dot-asm/following{/other_user}","gists_url":"https://api.github.com/users/dot-asm/gists{/gist_id}","starred_url":"https://api.github.com/users/dot-asm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dot-asm/subscriptions","organizations_url":"https://api.github.com/users/dot-asm/orgs","repos_url":"https://api.github.com/users/dot-asm/repos","events_url":"https://api.github.com/users/dot-asm/events{/privacy}","received_events_url":"https://api.github.com/users/dot-asm/received_events","type":"User","site_admin":false},"body":"Once again. Clean, platform-neutral #if-spaghetti-free code *first*. *Then* we can discuss/add platform-specific code. View it like this, solid foundation first, fancy facade second, but not at the same time.","created_at":"2017-04-19T09:11:00Z","updated_at":"2017-04-19T09:11:01Z","html_url":"https://github.com/openssl/openssl/pull/3242#discussion_r112151725","pull_request_url":"https://api.github.com/repos/openssl/openssl/pulls/3242","_links":{"self":{"href":"https://api.github.com/repos/openssl/openssl/pulls/comments/112151725"},"html":{"href":"https://github.com/openssl/openssl/pull/3242#discussion_r112151725"},"pull_request":{"href":"https://api.github.com/repos/openssl/openssl/pulls/3242"}}},"pull_request":{"url":"https://api.github.com/repos/openssl/openssl/pulls/3242","id":116303370,"html_url":"https://github.com/openssl/openssl/pull/3242","diff_url":"https://github.com/openssl/openssl/pull/3242.diff","patch_url":"https://github.com/openssl/openssl/pull/3242.patch","issue_url":"https://api.github.com/repos/openssl/openssl/issues/3242","number":3242,"state":"open","locked":false,"title":"Add ARIA 32bit implementation","user":{"login":"letrhee-nsr","id":27466387,"avatar_url":"https://avatars0.githubusercontent.com/u/27466387?v=3","gravatar_id":"","url":"https://api.github.com/users/letrhee-nsr","html_url":"https://github.com/letrhee-nsr","followers_url":"https://api.github.com/users/letrhee-nsr/followers","following_url":"https://api.github.com/users/letrhee-nsr/following{/other_user}","gists_url":"https://api.github.com/users/letrhee-nsr/gists{/gist_id}","starred_url":"https://api.github.com/users/letrhee-nsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letrhee-nsr/subscriptions","organizations_url":"https://api.github.com/users/letrhee-nsr/orgs","repos_url":"https://api.github.com/users/letrhee-nsr/repos","events_url":"https://api.github.com/users/letrhee-nsr/events{/privacy}","received_events_url":"https://api.github.com/users/letrhee-nsr/received_events","type":"User","site_admin":false},"body":"We found in the last commit ( #2337 ) that the ARIA cipher was added as an 8-bit implementation.\r\nWe already distributed the 32bit implementation of the ARIA cipher in the public domain via KISA ( http://seed.kisa.or.kr ), and we want to incorporate this code into OpenSSL as well.\r\n\r\nThe code we submit is a drop-in replacement of the code ( #2337 ), making the code easier to read, and has improved bit rotation, byte swap etc.\r\nIt has also passed the evp test successfully on Windows(VS2015)/x64, Linux/x64, Linux/MIPS, Linux / armv7.\r\n\r\nOriginal 32-bit implementation of ARIA can be found at the following link:\r\nhttp://seed.kisa.or.kr/iwt/en/bbs/EgovReferenceDetail.do?bbsId=BBSMSTR_000000000002&nttId=39&pageIndex=1\r\n\r\n##### Checklist\r\n<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->\r\n- [ ] documentation is added or updated\r\n- [ ] tests are added or updated\r\n","created_at":"2017-04-18T11:09:21Z","updated_at":"2017-04-19T09:11:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d51031ec6fdd0148cc0c6e501918b81d609db9a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openssl/openssl/pulls/3242/commits","review_comments_url":"https://api.github.com/repos/openssl/openssl/pulls/3242/comments","review_comment_url":"https://api.github.com/repos/openssl/openssl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openssl/openssl/issues/3242/comments","statuses_url":"https://api.github.com/repos/openssl/openssl/statuses/c1577675dfcfe7bba99b179c040f4ca5037a326d","head":{"label":"letrhee-nsr:aria_32bit","ref":"aria_32bit","sha":"c1577675dfcfe7bba99b179c040f4ca5037a326d","user":{"login":"letrhee-nsr","id":27466387,"avatar_url":"https://avatars0.githubusercontent.com/u/27466387?v=3","gravatar_id":"","url":"https://api.github.com/users/letrhee-nsr","html_url":"https://github.com/letrhee-nsr","followers_url":"https://api.github.com/users/letrhee-nsr/followers","following_url":"https://api.github.com/users/letrhee-nsr/following{/other_user}","gists_url":"https://api.github.com/users/letrhee-nsr/gists{/gist_id}","starred_url":"https://api.github.com/users/letrhee-nsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letrhee-nsr/subscriptions","organizations_url":"https://api.github.com/users/letrhee-nsr/orgs","repos_url":"https://api.github.com/users/letrhee-nsr/repos","events_url":"https://api.github.com/users/letrhee-nsr/events{/privacy}","received_events_url":"https://api.github.com/users/letrhee-nsr/received_events","type":"User","site_admin":false},"repo":{"id":88612792,"name":"openssl","full_name":"letrhee-nsr/openssl","owner":{"login":"letrhee-nsr","id":27466387,"avatar_url":"https://avatars0.githubusercontent.com/u/27466387?v=3","gravatar_id":"","url":"https://api.github.com/users/letrhee-nsr","html_url":"https://github.com/letrhee-nsr","followers_url":"https://api.github.com/users/letrhee-nsr/followers","following_url":"https://api.github.com/users/letrhee-nsr/following{/other_user}","gists_url":"https://api.github.com/users/letrhee-nsr/gists{/gist_id}","starred_url":"https://api.github.com/users/letrhee-nsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letrhee-nsr/subscriptions","organizations_url":"https://api.github.com/users/letrhee-nsr/orgs","repos_url":"https://api.github.com/users/letrhee-nsr/repos","events_url":"https://api.github.com/users/letrhee-nsr/events{/privacy}","received_events_url":"https://api.github.com/users/letrhee-nsr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/letrhee-nsr/openssl","description":"TLS/SSL and crypto library","fork":true,"url":"https://api.github.com/repos/letrhee-nsr/openssl","forks_url":"https://api.github.com/repos/letrhee-nsr/openssl/forks","keys_url":"https://api.github.com/repos/letrhee-nsr/openssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/letrhee-nsr/openssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/letrhee-nsr/openssl/teams","hooks_url":"https://api.github.com/repos/letrhee-nsr/openssl/hooks","issue_events_url":"https://api.github.com/repos/letrhee-nsr/openssl/issues/events{/number}","events_url":"https://api.github.com/repos/letrhee-nsr/openssl/events","assignees_url":"https://api.github.com/repos/letrhee-nsr/openssl/assignees{/user}","branches_url":"https://api.github.com/repos/letrhee-nsr/openssl/branches{/branch}","tags_url":"https://api.github.com/repos/letrhee-nsr/openssl/tags","blobs_url":"https://api.github.com/repos/letrhee-nsr/openssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/letrhee-nsr/openssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/letrhee-nsr/openssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/letrhee-nsr/openssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/letrhee-nsr/openssl/statuses/{sha}","languages_url":"https://api.github.com/repos/letrhee-nsr/openssl/languages","stargazers_url":"https://api.github.com/repos/letrhee-nsr/openssl/stargazers","contributors_url":"https://api.github.com/repos/letrhee-nsr/openssl/contributors","subscribers_url":"https://api.github.com/repos/letrhee-nsr/openssl/subscribers","subscription_url":"https://api.github.com/repos/letrhee-nsr/openssl/subscription","commits_url":"https://api.github.com/repos/letrhee-nsr/openssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/letrhee-nsr/openssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/letrhee-nsr/openssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/letrhee-nsr/openssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/letrhee-nsr/openssl/contents/{+path}","compare_url":"https://api.github.com/repos/letrhee-nsr/openssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/letrhee-nsr/openssl/merges","archive_url":"https://api.github.com/repos/letrhee-nsr/openssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/letrhee-nsr/openssl/downloads","issues_url":"https://api.github.com/repos/letrhee-nsr/openssl/issues{/number}","pulls_url":"https://api.github.com/repos/letrhee-nsr/openssl/pulls{/number}","milestones_url":"https://api.github.com/repos/letrhee-nsr/openssl/milestones{/number}","notifications_url":"https://api.github.com/repos/letrhee-nsr/openssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/letrhee-nsr/openssl/labels{/name}","releases_url":"https://api.github.com/repos/letrhee-nsr/openssl/releases{/id}","deployments_url":"https://api.github.com/repos/letrhee-nsr/openssl/deployments","created_at":"2017-04-18T10:31:17Z","updated_at":"2017-04-18T10:31:34Z","pushed_at":"2017-04-19T07:08:15Z","git_url":"git://github.com/letrhee-nsr/openssl.git","ssh_url":"git@github.com:letrhee-nsr/openssl.git","clone_url":"https://github.com/letrhee-nsr/openssl.git","svn_url":"https://github.com/letrhee-nsr/openssl","homepage":"https://www.openssl.org","size":114617,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openssl:master","ref":"master","sha":"786b6a45fbecc068d0fb8b05252a9228e0661c63","user":{"login":"openssl","id":3279138,"avatar_url":"https://avatars1.githubusercontent.com/u/3279138?v=3","gravatar_id":"","url":"https://api.github.com/users/openssl","html_url":"https://github.com/openssl","followers_url":"https://api.github.com/users/openssl/followers","following_url":"https://api.github.com/users/openssl/following{/other_user}","gists_url":"https://api.github.com/users/openssl/gists{/gist_id}","starred_url":"https://api.github.com/users/openssl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openssl/subscriptions","organizations_url":"https://api.github.com/users/openssl/orgs","repos_url":"https://api.github.com/users/openssl/repos","events_url":"https://api.github.com/users/openssl/events{/privacy}","received_events_url":"https://api.github.com/users/openssl/received_events","type":"Organization","site_admin":false},"repo":{"id":7634677,"name":"openssl","full_name":"openssl/openssl","owner":{"login":"openssl","id":3279138,"avatar_url":"https://avatars1.githubusercontent.com/u/3279138?v=3","gravatar_id":"","url":"https://api.github.com/users/openssl","html_url":"https://github.com/openssl","followers_url":"https://api.github.com/users/openssl/followers","following_url":"https://api.github.com/users/openssl/following{/other_user}","gists_url":"https://api.github.com/users/openssl/gists{/gist_id}","starred_url":"https://api.github.com/users/openssl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openssl/subscriptions","organizations_url":"https://api.github.com/users/openssl/orgs","repos_url":"https://api.github.com/users/openssl/repos","events_url":"https://api.github.com/users/openssl/events{/privacy}","received_events_url":"https://api.github.com/users/openssl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openssl/openssl","description":"TLS/SSL and crypto library","fork":false,"url":"https://api.github.com/repos/openssl/openssl","forks_url":"https://api.github.com/repos/openssl/openssl/forks","keys_url":"https://api.github.com/repos/openssl/openssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openssl/openssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openssl/openssl/teams","hooks_url":"https://api.github.com/repos/openssl/openssl/hooks","issue_events_url":"https://api.github.com/repos/openssl/openssl/issues/events{/number}","events_url":"https://api.github.com/repos/openssl/openssl/events","assignees_url":"https://api.github.com/repos/openssl/openssl/assignees{/user}","branches_url":"https://api.github.com/repos/openssl/openssl/branches{/branch}","tags_url":"https://api.github.com/repos/openssl/openssl/tags","blobs_url":"https://api.github.com/repos/openssl/openssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openssl/openssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openssl/openssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/openssl/openssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openssl/openssl/statuses/{sha}","languages_url":"https://api.github.com/repos/openssl/openssl/languages","stargazers_url":"https://api.github.com/repos/openssl/openssl/stargazers","contributors_url":"https://api.github.com/repos/openssl/openssl/contributors","subscribers_url":"https://api.github.com/repos/openssl/openssl/subscribers","subscription_url":"https://api.github.com/repos/openssl/openssl/subscription","commits_url":"https://api.github.com/repos/openssl/openssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/openssl/openssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/openssl/openssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/openssl/openssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/openssl/openssl/contents/{+path}","compare_url":"https://api.github.com/repos/openssl/openssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openssl/openssl/merges","archive_url":"https://api.github.com/repos/openssl/openssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openssl/openssl/downloads","issues_url":"https://api.github.com/repos/openssl/openssl/issues{/number}","pulls_url":"https://api.github.com/repos/openssl/openssl/pulls{/number}","milestones_url":"https://api.github.com/repos/openssl/openssl/milestones{/number}","notifications_url":"https://api.github.com/repos/openssl/openssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openssl/openssl/labels{/name}","releases_url":"https://api.github.com/repos/openssl/openssl/releases{/id}","deployments_url":"https://api.github.com/repos/openssl/openssl/deployments","created_at":"2013-01-15T22:34:48Z","updated_at":"2017-04-19T06:52:56Z","pushed_at":"2017-04-19T07:08:17Z","git_url":"git://github.com/openssl/openssl.git","ssh_url":"git@github.com:openssl/openssl.git","clone_url":"https://github.com/openssl/openssl.git","svn_url":"https://github.com/openssl/openssl","homepage":"https://www.openssl.org","size":114919,"stargazers_count":4533,"watchers_count":4533,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2365,"mirror_url":null,"open_issues_count":424,"forks":2365,"open_issues":424,"watchers":4533,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openssl/openssl/pulls/3242"},"html":{"href":"https://github.com/openssl/openssl/pull/3242"},"issue":{"href":"https://api.github.com/repos/openssl/openssl/issues/3242"},"comments":{"href":"https://api.github.com/repos/openssl/openssl/issues/3242/comments"},"review_comments":{"href":"https://api.github.com/repos/openssl/openssl/pulls/3242/comments"},"review_comment":{"href":"https://api.github.com/repos/openssl/openssl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openssl/openssl/pulls/3242/commits"},"statuses":{"href":"https://api.github.com/repos/openssl/openssl/statuses/c1577675dfcfe7bba99b179c040f4ca5037a326d"}}}}
{"actor":{"display_login":"dot-asm"}}