{"id":273677,"date":"2016-02-05T16:37:03","date_gmt":"2016-02-05T13:37:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=273677"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=273677","title":{"rendered":"\u0422\u0430\u043a \u043b\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0435\u043d Tox, \u043a\u0430\u043a \u0435\u0433\u043e \u043c\u0430\u043b\u044e\u044e\u0442?"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1d5\/268\/578\/1d5268578edf44dab08cea4ec71ef726.png\" alt=\"Tox Sux\" align=\"left\"\/><br \/>  \u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u044f \u0443\u0432\u0430\u0436\u0430\u044e \u044d\u0442\u0438\u0445 \u043b\u044e\u0434\u0435\u0439 \u0438 \u0438\u0445 \u0442\u0440\u0443\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0430\u0436\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e. \u0412 \u0441\u0442\u0440\u0435\u043c\u043b\u0435\u043d\u0438\u0438 \u043f\u043e\u043c\u043e\u0447\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u044f \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u0432 \u043a\u043e\u0434, \u0437\u0430\u043c\u0435\u0442\u0438\u043b \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 <s>\u043b\u044e\u0434\u0435\u0439 \u0432 \u043f\u043e\u0433\u043e\u043d\u0430\u0445 \u043a \u0432\u0430\u043c \u0434\u043e\u043c\u043e\u0439<\/s> \u043a \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f\u043c.<\/p>\n<p>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0435\u0441\u0442\u044c \u043d\u0435\u0437\u0434\u043e\u0440\u043e\u0432\u0430\u044f \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043d\u0438 P2P. \u0411\u0443\u0434\u0443 \u0438\u0437\u043b\u0430\u0433\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445 \u0441\u0432\u043e\u0438\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u0440\u043e\u0441\u0430\u0442\u044c\u0441\u044f \u0433\u0440\u043e\u043c\u043a\u0438\u043c\u0438 \u0444\u0440\u0430\u0437\u0430\u043c\u0438 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e. \u0412\u044b\u0432\u043e\u0434\u044b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u043e\u0442\u0432\u0435\u0447\u0443 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441: \u043c\u043e\u0439 <a href=\"https:\/\/github.com\/irungentoo\/toxcore\/pull\/1506\">pull request<\/a> \u0431\u044b\u043b \u043f\u0440\u0438\u043d\u044f\u0442.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0424\u0430\u043a\u0442 \u21161. \u0412 master-\u0432\u0435\u0442\u043a\u0443 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 <a href=\"https:\/\/travis-ci.org\/irungentoo\/toxcore\/builds\">\u043f\u0430\u0434\u0430\u0435\u0442 \u043d\u0430 \u0442\u0435\u0441\u0442\u0430\u0445<\/a><\/h4>\n<p>  \u0412\u0441\u0451 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0441\u043e \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043f\u0440\u043e <a href=\"https:\/\/habrahabr.ru\/post\/273901\/\">\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043d\u043e\u0434\u044b<\/a>.<br \/>  \u0412 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0445 \u043b\u044e\u0434\u0438 \u0436\u0430\u043b\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043d\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 CentOS, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u043f\u0438\u043b\u0438\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0443 \u043d\u0430 CMake. \u041f\u043e\u0441\u043b\u0435 \u043f\u0430\u0440\u044b \u0434\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u044f \u0431\u044b\u043b \u0433\u043e\u0442\u043e\u0432 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0451 \u043f\u043e\u0434\u0435\u043b\u0438\u0435 Tox-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0443 \u043d\u0430 Freenode, \u043d\u043e \u043c\u0435\u043d\u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0438 \u043d\u0435\u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435\u043c:  <\/p>\n<blockquote><p>someone has contributed cmake initially, but other developers didn&#8217;t know how to use it and couldn&#8217;t make it build their code, so they switched to autotools (sic!), which they become to know better now.<\/p><\/blockquote>\n<p>  \u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u044f \u043e\u0442\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0432 master-\u0432\u0435\u0442\u043a\u0443 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0442\u0435\u0441\u0442\u044b \u0432 Travis CI, \u043d\u043e \u043c\u043d\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0438: \u00ab\u043c\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u043c, \u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e \u043f\u0443\u0441\u0442\u044c \u043f\u043e\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u00bb.<\/p>\n<p>  \u041f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u0442\u0430\u043a \u043f\u043e\u043c\u043e\u0433\u0430\u0442\u044c, \u0440\u0435\u0448\u0438\u043b \u044f \u0438 \u043e\u0442\u043a\u0440\u044b\u043b \u043a\u043e\u0434 \u044d\u0442\u043e\u0433\u043e \u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u043d\u0430\u0434\u0435\u0436\u0434\u044b \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430.<\/p>\n<h4>\u0424\u0430\u043a\u0442 \u21162. memset(ptr, 0, size) \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c free<\/h4>\n<p>  \u041c\u043e\u0439 \u0433\u043b\u0430\u0437 \u0437\u0430\u0446\u0435\u043f\u0438\u043b\u0441\u044f \u0437\u0430 <\/p>\n<pre><code class=\"cpp\">memset(c, 0, sizeof(Net_Crypto)); free(c); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0438\u0437 \u0446\u0438\u043a\u043b\u0430 <a href=\"https:\/\/habrahabr.ru\/company\/pvs-studio\/blog\/247271\/\">\u0441\u0442\u0430\u0442\u0435\u0439<\/a> PVS-Studio, memset \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0440\u0435\u0437\u0430\u043d \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u0435\u0441\u043b\u0438 \u0440\u0435\u0433\u0438\u043e\u043d \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<br \/>  \u041b\u043e\u0433\u0438\u043a\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u043f\u0440\u043e\u0441\u0442\u0430: \u00ab\u041f\u043e\u0441\u043b\u0435 free \u0436\u0438\u0437\u043d\u0438 \u043d\u0435\u0442, \u0437\u043d\u0430\u0447\u0438\u0442 \u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u043a \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0443\u0434\u0430\u043b\u044e-\u043a\u0430 \u044f \u044d\u0442\u043e\u0442 \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u044b\u0439 memset\u00bb.<\/p>\n<p>  \u041a\u0430\u043a \u043f\u0440\u0438\u043b\u0435\u0436\u043d\u044b\u0439 \u0443\u0447\u0435\u043d\u0438\u043a, \u044f \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0432\u044b\u0437\u043e\u0432\u044b memset \u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043d\u0430 sodium_memzero, \u0438 \u0422\u0415\u0421\u0422\u042b \u0423\u041f\u0410\u041b\u0418.<\/p>\n<h4>\u0424\u0430\u043a\u0442 \u21163. \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0443\u044f\u0437\u0432\u0438\u043c\u043e \u043a \u0430\u0442\u0430\u043a\u0430\u043c \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h4>\n<p>  \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0432 toxcore \u0435\u0441\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0438 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e:  <\/p>\n<pre><code class=\"cpp\">\/* compare 2 public keys of length crypto_box_PUBLICKEYBYTES, not vulnerable to timing attacks.    returns 0 if both mem locations of length are equal,    return -1 if they are not. *\/ int public_key_cmp(const uint8_t *pk1, const uint8_t *pk2) {     return crypto_verify_32(pk1, pk2); } <\/code><\/pre>\n<p>  <b>crypto_verify_32<\/b> \u2014 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0437 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a <a href=\"https:\/\/nacl.cr.yp.to\">NaCL<\/a>\/<a href=\"https:\/\/libsodium.org\">Sodium<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0430\u0442\u0430\u043a \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0442.\u043a. \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0430 \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 break \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0431\u0430\u0439\u0442. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445: \u043a\u043b\u044e\u0447\u0435\u0439, HMAC&#8217;\u043e\u0432 \u0438 \u043f\u0440\u043e\u0447.<\/p>\n<p>  \u041a\u043e\u0434\u043e\u0432\u0430\u044f \u0431\u0430\u0437\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 toxcore \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0431\u0448\u0438\u0440\u043d\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0443\u0440\u043e\u0434\u0435\u0446 \u0441 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c\u044e:  <\/p>\n<pre><code class=\"cpp\">bool id_equal(const uint8_t *dest, const uint8_t *src) {     return memcmp(dest, src, crypto_box_PUBLICKEYBYTES) == 0; } <\/code><\/pre>\n<p>  \u041d\u043e \u0438 \u044d\u0442\u043e \u043d\u0435 \u0432\u0441\u0451. \u0418\u043c\u0435\u044f \u043d\u0430 \u0440\u0443\u043a\u0430\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>id_equal<\/b> \u0438\u043b\u0438 <b>public_key_cmp<\/b> \u0438\u043b\u0438 <b>crypto_verify_32<\/b>, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e\u0442 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0441\u0432\u043e\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<br \/>  \u0412\u043e\u0442 \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0432\u044b\u0436\u0438\u043c\u043a\u0430 \u0438\u0437 \u043a\u043e\u0434\u0430 DHT, onion \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c:  <\/p>\n<pre><code class=\"cpp\">if (memcmp(ping-&gt;to_ping[i].public_key, public_key, crypto_box_PUBLICKEYBYTES) == 0) { if (memcmp(public_key, onion_c-&gt;friends_list[i].real_public_key, crypto_box_PUBLICKEYBYTES) == 0) if (memcmp(public_key, onion_c-&gt;path_nodes_bs[i].public_key, crypto_box_PUBLICKEYBYTES) == 0) if (memcmp(dht_public_key, dht_public_key_temp, crypto_box_PUBLICKEYBYTES) != 0) if (Local_ip(ip_port.ip) && memcmp(friend_con-&gt;dht_temp_pk, public_key, crypto_box_PUBLICKEYBYTES) == 0) <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0424\u0430\u043a\u0442-\u0434\u043e\u043c\u044b\u0441\u0435\u043b \u21164. \u0424\u0443\u043d\u043a\u0446\u0438\u044f increment_nonce \u0443\u044f\u0437\u0432\u0438\u043c\u0430 \u043a \u0430\u0442\u0430\u043a\u0435 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h4>\n<p>  <\/p>\n<pre><code class=\"cpp\">\/* Increment the given nonce by 1. *\/ void increment_nonce(uint8_t *nonce) {     uint32_t i;      for (i = crypto_box_NONCEBYTES; i != 0; --i) {         ++nonce[i - 1];          if (nonce[i - 1] != 0)             break;               \/\/ &lt;=== sic!     } } <\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445(\u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043e\u043a\u0443\u043d\u0443\u0442\u044c\u0441\u044f \u0433\u043b\u0443\u0431\u0436\u0435, \u0432\u043e\u0442 <a href=\"https:\/\/cryptocoding.net\/index.php\/Coding_rules#Avoid_secret-dependent_loop_bounds\">\u043b\u0438\u043d\u043a\u0430<\/a>).<br \/>  \u0418\u043c\u0435\u043d\u043d\u043e <b>increment_nonce<\/b> \u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e nonce. \u0414\u043b\u044f \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430 nonce \u0443 Sodium \u0435\u0441\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f:  <\/p>\n<table>\n<tr>\n<td>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/td>\n<td>sodium_increment() can be used to increment nonces in constant time.<\/td>\n<\/tr>\n<tr>\n<td>\u041a\u043e\u0434<\/td>\n<td>\n<pre><code class=\"cpp\">void sodium_increment(unsigned char *n, const size_t nlen) {     size_t        i = 0U;     uint_fast16_t c = 1U;      for (; i &lt; nlen; i++) {         c += (uint_fast16_t) n[i];         n[i] = (unsigned char) c;         c &gt;&gt;= 8;     } }<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p>  Don&#8217;t stop me now! \u041d\u0438\u043a\u0430\u043a\u0438\u0445 break&#8217;\u043e\u0432, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u043c\u043e\u043b\u043e\u0442\u0438\u0442\u044c \u0431\u0430\u0439\u0442\u0438\u043a\u0438 \u0437\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0443\u0436\u0435 \u043f\u0440\u043e\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u043b\u0430 \u0441\u0432\u043e\u0451 \u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u043b\u0430 \u043e\u0441\u0442\u0430\u0442\u043e\u043a!<\/p>\n<p>  \u0418\u0440\u043e\u043d\u0438\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f <b>increment_nonce<\/b> \u043b\u0435\u0436\u0438\u0442 \u0432 \u0444\u0430\u0439\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u043b\u043e\u0432:  <\/p>\n<blockquote><p>This code has to be perfect. We don&#8217;t mess around with encryption.<\/p><\/blockquote>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0438\u043c\u0441\u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u043f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u0435\u0439.<\/p>\n<h4>\u0424\u0430\u043a\u0442 \u21165. \u0412 \u0441\u0442\u0435\u043a\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043a\u043b\u044e\u0447\u0438 \u0438 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h4>\n<p>  \u041f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e:  <\/p>\n<pre><code class=\"cpp\">\/* Precomputes the shared key from their public_key and our secret_key.  * This way we can avoid an expensive elliptic curve scalar multiply for each  * encrypt\/decrypt operation.  * enc_key has to be crypto_box_BEFORENMBYTES bytes long.  *\/ void encrypt_precompute(const uint8_t *public_key, const uint8_t *secret_key, uint8_t *enc_key) {     crypto_box_beforenm(enc_key, public_key, secret_key); \/\/ Nacl\/Sodium function }  \/* Encrypts plain of length length to encrypted of length + 16 using the  * public key(32 bytes) of the receiver and the secret key of the sender and a 24 byte nonce.  *  *  return -1 if there was a problem.  *  return length of encrypted data if everything was fine.  *\/ int encrypt_data(const uint8_t *public_key, const uint8_t *secret_key, const uint8_t *nonce,                   const uint8_t *plain, uint32_t length, uint8_t *encrypted) {     uint8_t k[crypto_box_BEFORENMBYTES];     encrypt_precompute(public_key, secret_key, k); \/\/ toxcore function     return encrypt_data_symmetric(k, nonce, plain, length, encrypted); \/\/ toxcore function } <\/code><\/pre>\n<p>  <b>encrypt_data_symmetric<\/b> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <b>crypto_box_detached_afternm<\/b> \u0438\u0437 Nacl\/Sodium, \u043a\u043e\u0434 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u0432\u043e\u0442 <a href=\"https:\/\/github.com\/irungentoo\/toxcore\/blob\/47c1e5fa434532da0a933368657db98e10ec13cc\/toxcore\/crypto_core.c#L104\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a> \u0434\u043b\u044f \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043c\u043e\u0438 \u0441\u043b\u043e\u0432\u0430.<\/p>\n<p>  \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043a\u043e\u0441\u044f\u0447\u0438\u0442\u044c \u0432 4 \u0441\u0442\u0440\u043e\u0447\u043a\u0430\u0445 \u043a\u043e\u0434\u0430?<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u043c \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 Sodium:  <\/p>\n<pre><code class=\"cpp\"> int crypto_box_detached(unsigned char *c, unsigned char *mac,                     const unsigned char *m, unsigned long long mlen,                     const unsigned char *n, const unsigned char *pk,                     const unsigned char *sk) {     unsigned char k[crypto_box_BEFORENMBYTES];     int           ret;      (void) sizeof(int[crypto_box_BEFORENMBYTES &gt;=                       crypto_secretbox_KEYBYTES ? 1 : -1]);     if (crypto_box_beforenm(k, pk, sk) != 0) {         return -1;     }     ret = crypto_box_detached_afternm(c, mac, m, mlen, n, k);     sodium_memzero(k, sizeof k);      return ret; } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b\u0440\u0435\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f:<\/p>\n<pre><code class=\"cpp\">    unsigned char k[crypto_box_BEFORENMBYTES];     int           ret;      crypto_box_beforenm(k, pk, sk);     ret = crypto_box_detached_afternm(c, mac, m, mlen, n, k);     sodium_memzero(k, sizeof k);      return ret; <\/code><\/pre>\n<p>  \u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442? \u0414\u0430 \u044d\u0442\u043e \u0436\u0435 \u0441\u043b\u0435\u0433\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>encrypt_data<\/b> \u0438\u0437 toxcore, \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0431\u044f\u0442\u0430 \u0437\u0430\u0431\u044b\u043b\u0438 \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043a\u043b\u044e\u0447\u0438\u043a \u043d\u0430 \u0441\u0442\u0435\u043a\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <b>sodium_memzero<\/b>\u2026 \u0422\u0430\u043a\u0438\u0445 \u043c\u0435\u0441\u0442 \u043f\u043e\u043b\u043d\u044b\u043c-\u043f\u043e\u043b\u043d\u043e: <b>handle_TCP_handshake<\/b>, <b>handle_handshake<\/b>, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0433\u0434\u0435-\u0442\u043e \u0435\u0449\u0435, \u043d\u043e \u044f \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043b.<\/p>\n<h4>\u0424\u0430\u043a\u0442 \u21166. \u0412\u0430\u0440\u043d\u0438\u043d\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0434\u043b\u044f \u0434\u0443\u0440\u0430\u043a\u043e\u0432!<\/h4>\n<p>  \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 toxcore \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u044e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430. \u041d\u0443 \u0438\u043b\u0438 \u043e\u043d\u0438 \u043f\u0440\u043e \u043d\u0438\u0445 \u043d\u0435 \u0437\u043d\u0430\u044e\u0442. \u042f \u043d\u0435 \u0431\u0435\u0440\u0443\u0441\u044c \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, \u043a\u0430\u043a\u043e\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0445\u0443\u0436\u0435.<\/p>\n<p>  \u041d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0440\u0430\u0434\u0443\u0435\u0442 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0432 \u0442\u0435\u0441\u0442\u0430\u0445):  <\/p>\n<pre><code class=\"cpp\">..\/auto_tests\/dht_test.c:351:12: warning: unused function 'test_addto_lists_ipv4' [-Wunused-function] START_TEST(test_addto_lists_ipv4)            ^ ..\/auto_tests\/dht_test.c:360:12: warning: unused function 'test_addto_lists_ipv6' [-Wunused-function] START_TEST(test_addto_lists_ipv6)            ^ ..\/toxcore\/TCP_server.c:1026:13: warning: unused function 'do_TCP_accept_new' [-Wunused-function] static void do_TCP_accept_new(TCP_Server *TCP_server)             ^ ..\/toxcore\/TCP_server.c:1110:13: warning: unused function 'do_TCP_incomming' [-Wunused-function] static void do_TCP_incomming(TCP_Server *TCP_server)             ^ ..\/toxcore\/TCP_server.c:1119:13: warning: unused function 'do_TCP_unconfirmed' [-Wunused-function] static void do_TCP_unconfirmed(TCP_Server *TCP_server)             ^ <\/code><\/pre>\n<pre><code class=\"bash\">..\/toxcore\/Messenger.c:2040:28: warning: comparison of constant 256 with expression of type 'uint8_t' (aka 'unsigned char') is always false       [-Wtautological-constant-out-of-range-compare]             if (filenumber &gt;= MAX_CONCURRENT_FILE_PIPES)                 ~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~ ..\/toxcore\/Messenger.c:2095:28: warning: comparison of constant 256 with expression of type 'uint8_t' (aka 'unsigned char') is always false       [-Wtautological-constant-out-of-range-compare]             if (filenumber &gt;= MAX_CONCURRENT_FILE_PIPES)                 ~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~ ..\/toxcore\/Messenger.c:2110:28: warning: comparison of constant 256 with expression of type 'uint8_t' (aka 'unsigned char') is always false       [-Wtautological-constant-out-of-range-compare]             if (filenumber &gt;= MAX_CONCURRENT_FILE_PIPES)                 ~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~ <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">..\/auto_tests\/TCP_test.c:205:24: warning: unsequenced modification and access to 'len' [-Wunsequenced]     ck_assert_msg((len = recv(con-&gt;sock, data, length, 0)) == length, &quot;wrong len %i\\n&quot;, len);                        ^                                                                ~~~ \/usr\/include\/check.h:273:18: note: expanded from macro 'ck_assert_msg'   _ck_assert_msg(expr, __FILE__, __LINE__,\\                  ^ <\/code><\/pre>\n<p>  \u0418 \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0430\u0440\u043d\u0438\u043d\u0433\u043e\u0432 \u043f\u0440\u043e \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u043a\u043e\u0432\u043e\u0433\u043e \u0438 \u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u043e\u0433\u043e \u0438 \u043f\u0440\u043e\u0447.<\/p>\n<h4>\u041c\u043e\u0438 \u0432\u044b\u0432\u043e\u0434\u044b<\/h4>\n<p>  \u0426\u0438\u0442\u0430\u0442\u0430 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f:  <\/p>\n<blockquote><p>We want Tox to be as simple as possible while remaining as secure as possible.<\/p><\/blockquote>\n<p>  \u0415\u0441\u043b\u0438 \u044f, \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0441\u0432\u0435\u0434\u0443\u0449 \u0432 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0441\u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043a\u0438\u0435 \u0443\u0436\u0430\u0441\u044b \u0437\u0430 \u0434\u0435\u043d\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0446\u0435\u043b\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e \u0440\u044b\u0442\u044c \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0441\u044f\u0446\u0430?<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u044c Tox. \u041a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0435 \u0433\u043b\u044f\u0434\u044f \u043f\u0440\u0438\u043c\u0443\u0442 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043d\u043e\u0436\u0438\u0442 \u0432\u0430\u0448\u0443 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043d\u043e\u043b\u044c.<\/p>\n<h4>\u041a\u0430\u043a \u0431\u044b\u0442\u044c?<\/h4>\n<p>  \u041c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 <a href=\"https:\/\/github.com\/kpp\/2tox\">2tox<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u043e\u0442\u0438\u0445\u043e\u043d\u044c\u043a\u0443 \u043f\u0438\u043b\u0438\u043c \u0441  <a href=\"https:\/\/habrahabr.ru\/users\/halt\/\" class=\"user_link\">Halt<\/a> \u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0443 toxcore.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/276665\/\"> https:\/\/habrahabr.ru\/post\/276665\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1d5\/268\/578\/1d5268578edf44dab08cea4ec71ef726.png\" alt=\"Tox Sux\" align=\"left\"\/><br \/>  \u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u044f \u0443\u0432\u0430\u0436\u0430\u044e \u044d\u0442\u0438\u0445 \u043b\u044e\u0434\u0435\u0439 \u0438 \u0438\u0445 \u0442\u0440\u0443\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0430\u0436\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e. \u0412 \u0441\u0442\u0440\u0435\u043c\u043b\u0435\u043d\u0438\u0438 \u043f\u043e\u043c\u043e\u0447\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0443, \u044f \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u0432 \u043a\u043e\u0434, \u0437\u0430\u043c\u0435\u0442\u0438\u043b \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 <s>\u043b\u044e\u0434\u0435\u0439 \u0432 \u043f\u043e\u0433\u043e\u043d\u0430\u0445 \u043a \u0432\u0430\u043c \u0434\u043e\u043c\u043e\u0439<\/s> \u043a \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f\u043c.<\/p>\n<p>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0435\u0441\u0442\u044c \u043d\u0435\u0437\u0434\u043e\u0440\u043e\u0432\u0430\u044f \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043d\u0438 P2P. \u0411\u0443\u0434\u0443 \u0438\u0437\u043b\u0430\u0433\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445 \u0441\u0432\u043e\u0438\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u0440\u043e\u0441\u0430\u0442\u044c\u0441\u044f \u0433\u0440\u043e\u043c\u043a\u0438\u043c\u0438 \u0444\u0440\u0430\u0437\u0430\u043c\u0438 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e. \u0412\u044b\u0432\u043e\u0434\u044b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u043e\u0442\u0432\u0435\u0447\u0443 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441: \u043c\u043e\u0439 <a href=\"https:\/\/github.com\/irungentoo\/toxcore\/pull\/1506\">pull request<\/a> \u0431\u044b\u043b \u043f\u0440\u0438\u043d\u044f\u0442.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-273677","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/273677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273677"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/273677\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}