{"id":240,"date":"2025-10-20T16:13:53","date_gmt":"2025-10-20T08:13:53","guid":{"rendered":"https:\/\/wp.ytdx.cc\/?p=240"},"modified":"2025-10-20T16:13:53","modified_gmt":"2025-10-20T08:13:53","slug":"%e5%9c%a8%e5%8d%95%e7%89%87%e6%9c%ba%e4%b8%b2%e5%8f%a3%e9%80%9a%e4%bf%a1%e4%b8%8a%e4%bb%bb%e4%bd%95%e5%ae%9e%e7%8e%b0chacha20%e5%8a%a0%e5%af%86","status":"publish","type":"post","link":"https:\/\/wp.ytdx.cc\/index.php\/2025\/10\/20\/%e5%9c%a8%e5%8d%95%e7%89%87%e6%9c%ba%e4%b8%b2%e5%8f%a3%e9%80%9a%e4%bf%a1%e4%b8%8a%e4%bb%bb%e4%bd%95%e5%ae%9e%e7%8e%b0chacha20%e5%8a%a0%e5%af%86\/","title":{"rendered":"\u5728\u5355\u7247\u673a\u4e32\u53e3\u901a\u4fe1\u4e0a\u4efb\u4f55\u5b9e\u73b0chacha20\u52a0\u5bc6"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u8981\u5b9e\u73b0ChaCha20\u52a0\u5bc6\u5728\u5355\u7247\u673a\uff08\u5982STM32\u3001Arduino\u7b49\uff09\u7684\u4e32\u53e3\u6570\u636e\u4f20\u8f93\u4e2d\uff0c\u9996\u5148\u9700\u8981\u7406\u89e3ChaCha20\u662f\u4e00\u79cd\u9ad8\u6548\u7684\u6d41\u52a0\u5bc6\u7b97\u6cd5\uff0c\u9002\u7528\u4e8e\u8d44\u6e90\u6709\u9650\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u3002\u5b83\u4f7f\u7528256\u4f4d\u5bc6\u94a5\uff08\u6216128\u4f4d\uff09\u548cnonce\u751f\u6210\u5bc6\u94a5\u6d41\uff0c\u7136\u540e\u901a\u8fc7XOR\u64cd\u4f5c\u52a0\u5bc6\/\u89e3\u5bc6\u6570\u636e\u6d41\u3002\u4e32\u53e3\uff08UART\uff09\u4f20\u8f93\u65f6\uff0c\u53ef\u4ee5\u5728\u53d1\u9001\u6570\u636e\u524d\u52a0\u5bc6\uff0c\u5728\u63a5\u6536\u7aef\u89e3\u5bc6\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6b65\u9aa4\u6982\u8ff0<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u51c6\u5907\u5bc6\u94a5\u548cnonce\uff1a\u5bc6\u94a5\u901a\u5e38\u4e3a32\u5b57\u8282\uff08256\u4f4d\uff09\uff0cnonce\u4e3a12\u5b57\u8282\uff0896\u4f4d\uff09\u3002\u786e\u4fddnonce\u6bcf\u6b21\u4f20\u8f93\u552f\u4e00\uff0c\u4ee5\u907f\u514d\u91cd\u653e\u653b\u51fb\u3002<\/li>\n\n\n\n<li>\u5b9e\u73b0ChaCha20\u7b97\u6cd5\uff1a\u4f7f\u7528C\u8bed\u8a00\u5b9e\u73b0\u6838\u5fc3\u51fd\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u6807\u51c6\u5b9e\u73b0\uff08\u57fa\u4e8e\u5f00\u6e90\u5e93\uff0c\u517c\u5bb9\u5927\u591a\u6570\u5355\u7247\u673aC\u7f16\u8bd1\u5668\uff0c\u5982GCC for ARM\u6216AVR\uff09\u3002<\/li>\n\n\n\n<li>\u96c6\u6210\u5230\u4e32\u53e3\u4f20\u8f93\uff1a<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53d1\u9001\u7aef\uff1a\u52a0\u5bc6\u6570\u636e\uff0c\u7136\u540e\u901a\u8fc7UART\u53d1\u9001\u3002<\/li>\n\n\n\n<li>\u63a5\u6536\u7aef\uff1a\u63a5\u6536\u6570\u636e\uff0c\u7136\u540e\u89e3\u5bc6\u3002<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6ce8\u610f\u4e8b\u9879\uff1a<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5355\u7247\u673a\u8d44\u6e90\u6709\u9650\uff0c\u9009\u62e98\u8f6e\u621612\u8f6eChaCha\uff08nr\u53c2\u6570\uff09\u4ee5\u4f18\u5316\u6027\u80fd\uff0820\u8f6e\u66f4\u5b89\u5168\u4f46\u66f4\u6162\uff09\u3002<\/li>\n\n\n\n<li>\u9700\u8981\u5305\u542b\u6807\u51c6\u5934\u6587\u4ef6\u5982stdint.h\u3001string.h\u3002<\/li>\n\n\n\n<li>\u6d4b\u8bd5\u65f6\uff0c\u786e\u4fdd\u5b57\u8282\u5e8f\u4e3a\u5c0f\u7aef\uff08little-endian\uff09\u3002<\/li>\n\n\n\n<li>\u5bf9\u4e8e\u5177\u4f53\u5355\u7247\u673a\uff08\u5982STM32\uff09\uff0c\u4f7f\u7528HAL\u5e93\u6216\u5bc4\u5b58\u5668\u64cd\u4f5cUART\uff1b\u5bf9\u4e8eArduino\uff0c\u4f7f\u7528Serial\u5e93\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">ChaCha20 C\u5b9e\u73b0\u4ee3\u7801<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u5b8c\u6574\u7684ChaCha20\u5b9e\u73b0\u4ee3\u7801\uff08\u63d0\u53d6\u81ea\u5f00\u6e90\u5b9e\u73b0\uff0c\u652f\u63018\/12\/20\u8f6e\uff09\u3002\u4f60\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u5230\u4f60\u7684\u9879\u76ee\u4e2d\uff0c\u653e\u5728chacha.h\u548cchacha.c\u6587\u4ef6\u4e2d\u3002 10<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">chacha.h\uff08\u5934\u6587\u4ef6\uff09\uff1a<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">ifndef _CHACHA_H<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">define _CHACHA_H<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">include<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">include<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">typedef struct {<br>uint32_t state[16];<br>uint8_t keystream[64];<br>size_t pos;<br>uint_t nr;<br>} ChachaContext;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">typedef int error_t; \/\/ \u7b80\u5355\u5b9a\u4e49\u9519\u8bef\u7c7b\u578b\uff0c0\u4e3a\u6210\u529f\uff0c\u975e0\u4e3a\u5931\u8d25<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">define NO_ERROR 0<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">define ERROR_INVALID_PARAMETER -1<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">error_t chachaInit(ChachaContext *context, uint_t nr, const uint8_t *key,<br>size_t keyLen, const uint8_t *nonce, size_t nonceLen);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">void chachaCipher(ChachaContext *context, const uint8_t *input,<br>uint8_t *output, size_t length);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">void chachaDeinit(ChachaContext *context);<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">define LOAD32LE(p) ( \\<\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>((uint32_t)(((uint8_t *)(p))&#91;0]) &lt;&lt; 0) | \\\n((uint32_t)(((uint8_t *)(p))&#91;1]) &lt;&lt; 8) | \\\n((uint32_t)(((uint8_t *)(p))&#91;2]) &lt;&lt; 16) | \\\n((uint32_t)(((uint8_t *)(p))&#91;3]) &lt;&lt; 24) \\<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">)<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">define STORE32LE(p, v) \\<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">{ \\<br>uint32_t x = (v); \\<br>((uint8_t *)(p))[0] = (uint8_t)(x &gt;&gt; 0); \\<br>((uint8_t *)(p))[1] = (uint8_t)(x &gt;&gt; 8); \\<br>((uint8_t *)(p))[2] = (uint8_t)(x &gt;&gt; 16); \\<br>((uint8_t *)(p))[3] = (uint8_t)(x &gt;&gt; 24); \\<br>}<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">define ROL32(a, n) (((a) &lt;&lt; (n)) | ((a) &gt;&gt; (32 &#8211; (n))))<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">define MIN(a, b) (((a) &lt; (b)) ? (a) : (b))<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">endif<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">chacha.c\uff08\u6e90\u6587\u4ef6\uff09\uff1a<br>`c<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">include &#8220;chacha.h&#8221;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">include \/\/ \u7528\u4e8ememset<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">define QUARTER_ROUND(a, b, c, d) \\<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">{ \\<br>a += b; \\<br>d ^= a; \\<br>d = ROL32(d, 16); \\<br>c += d; \\<br>b ^= c; \\<br>b = ROL32(b, 12); \\<br>a += b; \\<br>d ^= a; \\<br>d = ROL32(d, 8); \\<br>c += d; \\<br>b ^= c; \\<br>b = ROL32(b, 7); \\<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">error_t chachaInit(ChachaContext *context, uint_t nr, const uint8_t *key,<br>size_t keyLen, const uint8_t *nonce, size_t nonceLen)<br>{<br>uint32_t *w;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">if (context == NULL key == NULL nonce == NULL)<br>return ERROR_INVALID_PARAMETER;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">if (nr != 8 &amp;&amp; nr != 12 &amp;&amp; nr != 20)<br>return ERROR_INVALID_PARAMETER;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">context-&gt;nr = nr;<br>w = context-&gt;state;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">if (keyLen == 16)<br>{<br>w[0] = 0x61707865;<br>w[1] = 0x3120646E;<br>w[2] = 0x79622D36;<br>w[3] = 0x6B206574;<br>w[4] = LOAD32LE(key);<br>w[5] = LOAD32LE(key + 4);<br>w[6] = LOAD32LE(key + 8);<br>w[7] = LOAD32LE(key + 12);<br>w[8] = LOAD32LE(key);<br>w[9] = LOAD32LE(key + 4);<br>w[10] = LOAD32LE(key + 8);<br>w[11] = LOAD32LE(key + 12);<br>}<br>else if (keyLen == 32)<br>{<br>w[0] = 0x61707865;<br>w[1] = 0x3320646E;<br>w[2] = 0x79622D32;<br>w[3] = 0x6B206574;<br>w[4] = LOAD32LE(key);<br>w[5] = LOAD32LE(key + 4);<br>w[6] = LOAD32LE(key + 8);<br>w[7] = LOAD32LE(key + 12);<br>w[8] = LOAD32LE(key + 16);<br>w[9] = LOAD32LE(key + 20);<br>w[10] = LOAD32LE(key + 24);<br>w[11] = LOAD32LE(key + 28);<br>}<br>else<br>{<br>return ERROR_INVALID_PARAMETER;<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">if (nonceLen == 8)<br>{<br>w[12] = 0;<br>w[13] = 0;<br>w[14] = LOAD32LE(nonce);<br>w[15] = LOAD32LE(nonce + 4);<br>}<br>else if (nonceLen == 12)<br>{<br>w[12] = 0;<br>w[13] = LOAD32LE(nonce);<br>w[14] = LOAD32LE(nonce + 4);<br>w[15] = LOAD32LE(nonce + 8);<br>}<br>else if (nonceLen == 16)<br>{<br>w[12] = LOAD32LE(nonce);<br>w[13] = LOAD32LE(nonce + 4);<br>w[14] = LOAD32LE(nonce + 8);<br>w[15] = LOAD32LE(nonce + 12);<br>}<br>else<br>{<br>return ERROR_INVALID_PARAMETER;<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">context-&gt;pos = 0;<br>return NO_ERROR;<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">void chachaCipher(ChachaContext *context, const uint8_t *input,<br>uint8_t *output, size_t length)<br>{<br>uint_t i;<br>uint_t n;<br>uint8_t *k;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">while (length &gt; 0)<br>{<br>if (context-&gt;pos == 0 || context-&gt;pos &gt;= 64)<br>{<br>chachaProcessBlock(context);<br>context-&gt;state[12]++;<br>if (context-&gt;state[12] == 0)<br>{<br>context-&gt;state[13]++;<br>}<br>context-&gt;pos = 0;<br>}<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  n = MIN(length, 64 - context-&gt;pos);\n  if (output != NULL)\n  {\n     k = context-&gt;keystream + context-&gt;pos;\n     if (input != NULL)\n     {\n        for (i = 0; i &lt; n; i++)\n        {\n           output&#91;i] = input&#91;i] ^ k&#91;i];\n        }\n     }\n     else\n     {\n        for (i = 0; i &lt; n; i++)\n        {\n           output&#91;i] = k&#91;i];\n        }\n     }\n  }\n\n  context-&gt;pos += n;\n  length -= n;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">}<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">static void chachaProcessBlock(ChachaContext *context)<br>{<br>uint_t i;<br>uint32_t w[16];<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">for (i = 0; i &lt; 16; i++) { w[i] = context-&gt;state[i];<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">for (i = 0; i &lt; context-&gt;nr; i += 2)<br>{<br>QUARTER_ROUND(w[0], w[4], w[8], w[12]);<br>QUARTER_ROUND(w[1], w[5], w[9], w[13]);<br>QUARTER_ROUND(w[2], w[6], w[10], w[14]);<br>QUARTER_ROUND(w[3], w[7], w[11], w[15]);<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  QUARTER_ROUND(w&#91;0], w&#91;5], w&#91;10], w&#91;15]);\n  QUARTER_ROUND(w&#91;1], w&#91;6], w&#91;11], w&#91;12]);\n  QUARTER_ROUND(w&#91;2], w&#91;7], w&#91;8], w&#91;13]);\n  QUARTER_ROUND(w&#91;3], w&#91;4], w&#91;9], w&#91;14]);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">for (i = 0; i &lt; 16; i++) { w[i] += context-&gt;state[i];<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">for (i = 0; i &lt; 16; i++) { STORE32LE(context-&gt;keystream + i * 4, w[i]);<br>}<br>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">void chachaDeinit(ChachaContext *context)<br>{<br>memset(context, 0, sizeof(ChachaContext));<br>}<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u96c6\u6210\u5230\u5355\u7247\u673a\u4e32\u53e3\u4f20\u8f93<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5047\u8bbe\u4f7f\u7528STM32\u5355\u7247\u673a\uff08\u4f7f\u7528HAL\u5e93\uff09\uff0c\u4ee5\u4e0b\u662f\u53d1\u9001\u7aef\u52a0\u5bc6\u5e76\u4f20\u8f93\u7684\u793a\u4f8b\u4ee3\u7801\u3002\u63a5\u6536\u7aef\u7c7b\u4f3c\uff0c\u53ea\u9700\u8c03\u7528\u89e3\u5bc6\uff08chachaCipher\u51fd\u6570\u5bf9\u79f0\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">c<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">include &#8220;chacha.h&#8221;<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">include &#8220;stm32f4xx_hal.h&#8221; \/\/ \u5047\u8bbeSTM32F4\u7cfb\u5217\uff0c\u66ff\u6362\u4e3a\u4f60\u7684\u82af\u7247<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">extern UART_HandleTypeDef huart1; \/\/ \u4f60\u7684UART\u53e5\u67c4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">int main(void) {<br>ChachaContext context;<br>uint8_t key[32] = {0x00, 0x01, \u2026}; \/\/ 32\u5b57\u8282\u5bc6\u94a5\uff0c\u81ea\u884c\u586b\u5145<br>uint8_t nonce[12] = {0x00, 0x00, \u2026}; \/\/ 12\u5b57\u8282nonce<br>uint8_t plaintext[100] = &#8220;Hello, World!&#8221;; \/\/ \u8981\u53d1\u9001\u7684\u6570\u636e<br>uint8_t ciphertext[100];<br>size_t dataLen = strlen((char*)plaintext);<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u521d\u59cb\u5316ChaCha\nchachaInit(&amp;context, 20, key, 32, nonce, 12);  \/\/ 20\u8f6e\uff0c32\u5b57\u8282\u5bc6\u94a5\uff0c12\u5b57\u8282nonce\n\n\/\/ \u52a0\u5bc6\u6570\u636e\nchachaCipher(&amp;context, plaintext, ciphertext, dataLen);\n\n\/\/ \u901a\u8fc7\u4e32\u53e3\u53d1\u9001\u52a0\u5bc6\u6570\u636e\nHAL_UART_Transmit(&amp;huart1, ciphertext, dataLen, HAL_MAX_DELAY);\n\n\/\/ \u6e05\u7406\nchachaDeinit(&amp;context);\n\nwhile(1);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">}<br>`<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u63a5\u6536\u7aef\uff1a\u7c7b\u4f3c\u521d\u59cb\u5316ChaCha\uff08\u76f8\u540c\u5bc6\u94a5\u548cnonce\uff09\uff0c\u63a5\u6536\u6570\u636e\u540e\u8c03\u7528<code>chachaCipher(&amp;context, ciphertext, plaintext, dataLen);<\/code>\u89e3\u5bc6\u3002<\/li>\n\n\n\n<li>Arduino\u793a\u4f8b\uff1a\u66ff\u6362HAL\u4e3a<code>Serial.write(ciphertext, dataLen);<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u7684\u5355\u7247\u673a\u662f\u5176\u4ed6\u7c7b\u578b\uff08\u59828051\uff09\uff0c\u9700\u8981\u8c03\u6574UART\u51fd\u6570\u3002\u6d4b\u8bd5\u65f6\uff0c\u53ef\u4ee5\u5148\u5728PC\u4e0a\u7f16\u8bd1\u9a8c\u8bc1\uff0c\u7136\u540e\u79fb\u690d\u5230\u5355\u7247\u673a\u3002ChaCha20\u6548\u7387\u9ad8\uff0c\u9002\u5408\u4f4e\u529f\u8017\u8bbe\u5907\u3002\u5982\u679c\u9700\u8981Poly1305\u8ba4\u8bc1\uff08ChaCha20-Poly1305\uff09\uff0c\u53ef\u4ee5\u6269\u5c55\u5b9e\u73b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u5b9e\u73b0ChaCha20\u52a0\u5bc6\u5728\u5355\u7247\u673a\uff08\u5982STM32\u3001Arduino\u7b49\uff09\u7684\u4e32\u53e3\u6570\u636e\u4f20\u8f93\u4e2d\uff0c\u9996\u5148\u9700\u8981\u7406\u89e3ChaCha &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wp.ytdx.cc\/index.php\/2025\/10\/20\/%e5%9c%a8%e5%8d%95%e7%89%87%e6%9c%ba%e4%b8%b2%e5%8f%a3%e9%80%9a%e4%bf%a1%e4%b8%8a%e4%bb%bb%e4%bd%95%e5%ae%9e%e7%8e%b0chacha20%e5%8a%a0%e5%af%86\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u5728\u5355\u7247\u673a\u4e32\u53e3\u901a\u4fe1\u4e0a\u4efb\u4f55\u5b9e\u73b0chacha20\u52a0\u5bc6\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-date","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":1,"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions\/241"}],"wp:attachment":[{"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.ytdx.cc\/index.php\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}