{"id":134,"date":"2026-01-05T14:04:29","date_gmt":"2026-01-05T06:04:29","guid":{"rendered":"https:\/\/www.b1ny.top\/?p=134"},"modified":"2026-01-05T14:04:29","modified_gmt":"2026-01-05T06:04:29","slug":"%e5%85%ac%e9%92%a5%e5%8a%a0%e5%af%86%e7%9b%b8%e5%85%b3%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86","status":"publish","type":"post","link":"https:\/\/www.b1ny.top\/index.php\/2026\/01\/05\/%e5%85%ac%e9%92%a5%e5%8a%a0%e5%af%86%e7%9b%b8%e5%85%b3%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86\/","title":{"rendered":"\u516c\u94a5\u52a0\u5bc6\u76f8\u5173\u57fa\u7840\u77e5\u8bc6"},"content":{"rendered":"\n<p>\u4e3b\u8981\u8bb0\u5f55\u4e00\u4e0b\u4e3b\u6d41\u4f53\u7cfb\u4ee5\u53ca\u53ef\u8bc1\u660e\u5b89\u5168\u65b9\u6cd5<br><br>1. \u4f20\u7edf\u516c\u94a5\u57fa\u7840\u8bbe\u65bd\uff08PKI\uff09\u4f53\u7cfb<\/p>\n\n\n\n<p>\u8fd9\u662f\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\uff0c\u6bd4\u5982\u7528\u5728HTTPS\u7f51\u7ad9\u4e0a\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6838\u5fc3\u89d2\u8272\uff1a\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff08CA\uff09<\/strong><\/li>\n\n\n\n<li><strong>\u600e\u4e48\u5de5\u4f5c\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li>\u4f60\u751f\u6210\u4e00\u5bf9\u516c\u94a5\u548c\u79c1\u94a5\u3002<\/li>\n\n\n\n<li>\u4f60\u628a\u516c\u94a5\u548c\u4f60\u7684\u8eab\u4efd\u4fe1\u606f\uff0c\u4ea4\u7ed9\u4e00\u4e2a\u7edd\u5bf9\u53ef\u4fe1\u7684\u7b2c\u4e09\u65b9\u2014\u2014<strong>CA<\/strong>\u3002<\/li>\n\n\n\n<li>CA\u6838\u5b9e\u4f60\u7684\u8eab\u4efd\u540e\uff0c\u7528\u5b83\u7684\u79c1\u94a5<strong>\u5bf9\u4f60\u7684\u516c\u94a5\u548c\u8eab\u4efd\u4fe1\u606f\u8fdb\u884c\u6570\u5b57\u7b7e\u540d<\/strong>\uff0c\u751f\u6210\u4e00\u4e2a<strong>\u201c\u6570\u5b57\u8bc1\u4e66\u201d<\/strong>\u3002<\/li>\n\n\n\n<li>\u522b\u4eba\u60f3\u548c\u4f60\u901a\u4fe1\u65f6\uff0c\u9700\u8981\u5148\u62ff\u5230\u4f60\u7684\u8bc1\u4e66\uff0c\u7136\u540e\u7528CA\u7684\u516c\u5f00\u7684\u516c\u94a5\u53bb<strong>\u9a8c\u8bc1\u8fd9\u4e2a\u8bc1\u4e66\u7684\u7b7e\u540d<\/strong>\u3002\u9a8c\u8bc1\u901a\u8fc7\u4e86\uff0c\u624d\u76f8\u4fe1\u8fd9\u4e2a\u516c\u94a5\u786e\u5b9e\u662f\u4f60\u7684\u3002<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><strong>\u7f3a\u70b9\uff1a<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u6210\u672c\u9ad8\uff0c\u7ba1\u7406\u590d\u6742\uff1a<\/strong> \u4f60\u9700\u8981\u5411CA\u8d2d\u4e70\u548c\u7ef4\u62a4\u8bc1\u4e66\u3002<\/li>\n\n\n\n<li><strong>\u5355\u70b9\u6545\u969c\uff1a<\/strong> \u6574\u4e2a\u7cfb\u7edf\u7684\u4fe1\u4efb\u90fd\u4f9d\u8d56\u4e8eCA\u3002\u5982\u679cCA\u88ab\u653b\u7834\u6216\u8005\u5b83\u7684\u79c1\u94a5\u6cc4\u9732\u4e86\uff0c\u6574\u4e2a\u4fe1\u4efb\u4f53\u7cfb\u5c31\u5d29\u584c\u4e86\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>\u7b80\u5355\u6bd4\u55bb\uff1a<\/strong> CA\u5c31\u50cf\u4e00\u4e2a<strong>\u516c\u5b89\u5c40\u6237\u653f\u79d1<\/strong>\u3002\u4f60\u8981\u8bc1\u660e\u201c\u4f60\u662f\u4f60\u201d\uff0c\u9700\u8981\u53bb\u90a3\u91cc\u529e\u4e00\u5f20\u5e26\u516c\u7ae0\u548c\u9632\u4f2a\u7684\u8eab\u4efd\u8bc1\uff08<strong>\u6570\u5b57\u8bc1\u4e66<\/strong>\uff09\u3002\u522b\u4eba\u901a\u8fc7\u68c0\u67e5\u8eab\u4efd\u8bc1\u4e0a\u7684\u516c\u7ae0\u771f\u4f2a\uff08<strong>\u9a8c\u8bc1CA\u7b7e\u540d<\/strong>\uff09\u6765\u76f8\u4fe1\u4f60\u7684\u8eab\u4efd\u3002<br><br>2. \u8eab\u4efd\u57fa\u5bc6\u7801\uff08IBE\uff09\u4f53\u7cfb<\/p>\n\n\n\n<p>\u4e3a\u4e86\u89e3\u51b3PKI\u7684\u8bc1\u4e66\u7ba1\u7406\u95ee\u9898\uff0c\u6709\u4eba\u63d0\u51fa\u4e86IBE\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6838\u5fc3\u601d\u60f3\uff1a<\/strong> \u4f60\u7684\u516c\u94a5\u5c31\u662f\u4f60\u7684\u8eab\u4efd\u6807\u8bc6\uff01\u6bd4\u5982\u4f60\u7684\u90ae\u7bb1\u5730\u5740 <code>your_name@company.com<\/code> \u6216\u8005\u624b\u673a\u53f7\uff0c\u76f4\u63a5\u5c31\u53ef\u4ee5\u4f5c\u4e3a\u516c\u94a5\u3002<\/li>\n\n\n\n<li><strong>\u600e\u4e48\u5de5\u4f5c\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li>\u6709\u4e00\u4e2a\u53eb<strong>\u79c1\u94a5\u751f\u6210\u5668\uff08PKG\uff09<\/strong> \u7684\u4e2d\u5fc3\u673a\u6784\uff0c\u5b83\u638c\u63e1\u7740\u4e00\u4e2a\u4e3b\u79c1\u94a5\u3002<\/li>\n\n\n\n<li>\u4f60\u60f3\u83b7\u53d6\u4f60\u7684\u79c1\u94a5\uff1f\u628a\u4f60\u7684\u8eab\u4efd\u4fe1\u606f\uff08\u90ae\u7bb1\uff09\u7ed9PKG\uff0cPKG\u7528\u4e3b\u79c1\u94a5\u4e3a\u4f60<strong>\u8ba1\u7b97\u751f\u6210<\/strong>\u5bf9\u5e94\u7684\u79c1\u94a5\u3002<\/li>\n\n\n\n<li>\u522b\u4eba\u60f3\u7528\u4f60\u7684\u516c\u94a5\uff08\u4e5f\u5c31\u662f\u4f60\u7684\u90ae\u7bb1\uff09\u52a0\u5bc6\u4fe1\u606f\u65f6\uff0c\u4e5f\u9700\u8981\u4ecePKG\u83b7\u53d6\u4e00\u4e9b\u516c\u5f00\u7684\u7cfb\u7edf\u53c2\u6570\u3002<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><strong>\u7f3a\u70b9\uff1a<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u5bc6\u94a5\u6258\u7ba1\u95ee\u9898\uff1a<\/strong> \u8fd9\u662f\u6700\u81f4\u547d\u7684\u7f3a\u9677\u3002<strong>PKG\u77e5\u9053\u6240\u6709\u7528\u6237\u7684\u79c1\u94a5\uff01<\/strong> \u8fd9\u610f\u5473\u7740PKG\u53ef\u4ee5\u5192\u5145\u4efb\u4f55\u7528\u6237\uff0c\u4e5f\u53ef\u4ee5\u89e3\u5bc6\u6240\u6709\u5bc6\u6587\u3002\u4f60\u5b8c\u5168\u4fe1\u4efbPKG\u4e0d\u4f1a\u4f5c\u6076\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>\u7b80\u5355\u6bd4\u55bb\uff1a<\/strong> PKG\u5c31\u50cf\u4e00\u4e2a<strong>\u914d\u94a5\u5319\u7684\u603b\u7ba1\u5bb6<\/strong>\u3002\u4f60\u7684\u540d\u5b57\uff08\u8eab\u4efd\uff09\u5c31\u662f\u95e8\u724c\u53f7\uff08\u516c\u94a5\uff09\u3002\u4f60\u9700\u8981\u79c1\u94a5\u65f6\uff0c\u603b\u7ba1\u5bb6\u7528\u4ed6\u7684\u4e07\u80fd\u6a21\u5177\u7ed9\u4f60\u914d\u4e00\u628a\u3002\u4f46\u603b\u7ba1\u5bb6\u624b\u91cc\u6709\u6240\u6709\u4eba\u7684\u94a5\u5319\uff0c\u4ed6\u968f\u65f6\u53ef\u4ee5\u8fdb\u4f60\u7684\u623f\u95f4\u3002<br><br>3. \u65e0\u8bc1\u4e66\u516c\u94a5\u5bc6\u7801\uff08CL-PKC\uff09\u4f53\u7cfb<\/p>\n\n\n\n<p>\u65e0\u8bc1\u4e66\u4f53\u7cfb\u5c31\u662f\u4e3a\u4e86<strong>\u540c\u65f6\u89e3\u51b3\u4e0a\u9762\u4e24\u4e2a\u95ee\u9898<\/strong>\u800c\u8bbe\u8ba1\u7684\u3002\u5b83<strong>\u6ca1\u6709\u8bc1\u4e66<\/strong>\uff0c\u4e5f<strong>\u6ca1\u6709\u5bc6\u94a5\u6258\u7ba1<\/strong>\u3002<\/p>\n\n\n\n<p><strong>\u65e0\u5bc6\u94a5\u6258\u7ba1\uff1a<\/strong> \u56e0\u4e3aKGC\u4e0d\u77e5\u9053\u4f60\u7684\u201c\u7528\u6237\u79d8\u5bc6\u503c\u201d\uff0c\u6240\u4ee5\u5b83\u65e0\u6cd5\u8ba1\u7b97\u51fa\u4f60\u7684\u5b8c\u6574\u79c1\u94a5\uff0c\u4e0d\u80fd\u5192\u5145\u4f60\u3002<\/p>\n\n\n\n<p><strong>\u6838\u5fc3\u601d\u60f3\uff1a<\/strong> \u628a\u4f60\u7684\u79c1\u94a5\u5206\u6210\u4e24\u534a\uff0c\u7531\u4f60\u548c\u4e00\u4e2a\u534a\u53ef\u4fe1\u7684\u7b2c\u4e09\u65b9\uff08\u53eb\u5bc6\u94a5\u751f\u6210\u4e2d\u5fc3\uff0cKGC\uff09<strong>\u5171\u540c\u751f\u6210<\/strong>\u3002<\/p>\n\n\n\n<p><strong>\u600e\u4e48\u5de5\u4f5c\uff1a<\/strong><\/p>\n\n\n\n<p><strong>\u90e8\u5206\u79c1\u94a5\uff1a<\/strong> \u4f60\u5411KGC\u6ce8\u518c\u4f60\u7684\u8eab\u4efd\u548c\u516c\u94a5\u3002KGC\u7528\u5b83\u7684\u4e3b\u79c1\u94a5\u4e3a\u4f60\u7684\u8eab\u4efd\u4fe1\u606f\u751f\u6210\u4e00\u4e2a<strong>\u90e8\u5206\u79c1\u94a5<\/strong>\uff0c\u5e76\u901a\u8fc7\u5b89\u5168\u901a\u9053\u53d1\u7ed9\u4f60\u3002<\/p>\n\n\n\n<p><strong>\u7528\u6237\u79d8\u5bc6\u503c\uff1a<\/strong> <strong>\u4f60\u81ea\u5df1<\/strong>\u72ec\u7acb\u751f\u6210\u4e00\u4e2a\u79d8\u5bc6\u7684\u968f\u673a\u6570\uff0c\u4f5c\u4e3a\u4f60\u7684<strong>\u7528\u6237\u79d8\u5bc6\u503c<\/strong>\u3002\u8fd9\u4e2a\u503cKGC\u4e0d\u77e5\u9053\u3002<\/p>\n\n\n\n<p><strong>\u5b8c\u6574\u79c1\u94a5\uff1a<\/strong> \u4f60\u7528\u6536\u5230\u7684\u201c\u90e8\u5206\u79c1\u94a5\u201d\u548c\u4f60\u81ea\u5df1\u638c\u63e1\u7684\u201c\u7528\u6237\u79d8\u5bc6\u503c\u201d\uff0c\u901a\u8fc7\u4e00\u4e2a\u7b97\u6cd5<strong>\u5408\u6210<\/strong>\u4f60\u7684\u6700\u7ec8\u5b8c\u6574\u79c1\u94a5\u3002<strong>\u8fd9\u4e2a\u5b8c\u6574\u7684\u79c1\u94a5\u4ece\u672a\u5b8c\u6574\u5730\u7ecf\u8fc7KGC\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u5b8c\u6574\u516c\u94a5\uff1a<\/strong> \u4f60\u7684\u516c\u94a5\u4e5f\u7531\u201c\u90e8\u5206\u516c\u94a5\u201d\uff08\u4ece\u90e8\u5206\u79c1\u94a5\u5f97\u6765\uff09\u548c\u201c\u7528\u6237\u79d8\u5bc6\u503c\u201d\u5bf9\u5e94\u7684\u516c\u94a5\u90e8\u5206\u5171\u540c\u7ec4\u6210\u3002<\/p>\n\n\n\n<p><strong>\u5de8\u5927\u4f18\u52bf\uff1a<\/strong><\/p>\n\n\n\n<p><strong>\u65e0\u8bc1\u4e66\uff1a<\/strong> \u4e0d\u9700\u8981\u50cfPKI\u90a3\u6837\u7ef4\u62a4\u590d\u6742\u7684\u8bc1\u4e66\u94fe\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><br><strong>\u53ef\u8bc1\u660e\u5b89\u5168\u6027\u65b9\u6cd5\u7684\u4e00\u822c\u6b65\u9aa4<\/strong><\/p>\n\n\n\n<p>1.\u786e\u5b9a\u5bc6\u7801\u65b9\u6848\u7684\u5b89\u5168\u6027\u76ee\u6807\uff1b<\/p>\n\n\n\n<p>2.\u5f62\u5f0f\u5316\u5b9a\u4e49\u5bc6\u7801\u65b9\u6848\u7684\u5b89\u5168\u6027\uff1b<\/p>\n\n\n\n<p>3.\u8bc1\u660e\u5bc6\u7801\u65b9\u6848\u7684\u5b89\u5168\u6027\u3002<br><br>\u4f20\u7edf\u516c\u94a5\u52a0\u5bc6\u65b9\u6848\u7684\u5b9a\u4e49<\/p>\n\n\n\n<p>\u4e09\u4e2a\u7b97\u6cd5\uff1a\u5bc6\u94a5\u751f\u6210\u7b97\u6cd5(KeyGen)\uff0c\u52a0\u5bc6\u7b97\u6cd5(Encrypt)\uff0c\u89e3\u5bc6\u7b97\u6cd5(Decrypt)<br><br>\u516c\u94a5\u52a0\u5bc6\u65b9\u6848\u5b89\u5168\u6027\u76f8\u5173\u6982\u5ff5\u53ca\u5b89\u5168\u76ee\u6807<br>\u6570\u5b66\u6982\u5ff5\uff1a<br><strong>Decisional Diffie-Hellman,DDH\uff1a<\/strong>\u5224\u5b9a\u6027\u56f0\u96be\u95ee\u9898\uff0cDDH\u95ee\u9898\u4ec5\u9650\u4e8e\u975e\u53cc\u7ebf\u6027\u5bf9\u3002\u5728\u53cc\u7ebf\u6027\u4e0b\uff0cDDH\u4e0d\u662f\u56f0\u96be\u95ee\u9898\u3002<\/p>\n\n\n\n<p><strong>DDH\u7684\u8868\u73b0\u5f62\u5f0f\uff1a<\/strong>\u8bbeG\u662f\u4e00\u4e2a\u5927\u7d20\u6570p\u9636\u7fa4\uff0cg\u662f\u7fa4G\u7684\u751f\u6210\u5143\uff0c\u5219\u7ed9\u5b9a\u5143\u7ec4<math data-latex=\"(g,g^x,g^y,T)\\in G^4\"><semantics><mrow><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>g<\/mi><mo separator=\"true\">,<\/mo><msup><mi>g<\/mi><mi>x<\/mi><\/msup><mo separator=\"true\">,<\/mo><msup><mi>g<\/mi><mi>y<\/mi><\/msup><mo separator=\"true\">,<\/mo><mi>T<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>\u2208<\/mo><msup><mi>G<\/mi><mn>4<\/mn><\/msup><\/mrow><annotation encoding=\"application\/x-tex\">(g,g^x,g^y,T)\\in G^4<\/annotation><\/semantics><\/math>\uff0c\u5176\u4e2d\uff0c<math data-latex=\"(x,y)\\in Z_p^*\"><semantics><mrow><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>x<\/mi><mo separator=\"true\">,<\/mo><mi>y<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>\u2208<\/mo><msubsup><mi>Z<\/mi><mi>p<\/mi><mo form=\"prefix\" stretchy=\"false\">\u2217<\/mo><\/msubsup><\/mrow><annotation encoding=\"application\/x-tex\">(x,y)\\in Z_p^*<\/annotation><\/semantics><\/math>\uff0c\u5224\u65adT\u4e0e<math data-latex=\"g^{xy}\"><semantics><msup><mi>g<\/mi><mrow><mi>x<\/mi><mi>y<\/mi><\/mrow><\/msup><annotation encoding=\"application\/x-tex\">g^{xy}<\/annotation><\/semantics><\/math>\u662f\u5426\u76f8\u7b49\u662f\u56f0\u96be\u7684\uff0c\u5373\u6ca1\u6709\u591a\u9879\u65f6\u95f4\u7b97\u6cd5\u80fd\u591f\u533a\u5206T\u4e0e<math data-latex=\"g^{xy}\"><semantics><msup><mi>g<\/mi><mrow><mi>x<\/mi><mi>y<\/mi><\/mrow><\/msup><annotation encoding=\"application\/x-tex\">g^{xy}<\/annotation><\/semantics><\/math>\uff0c\u79f0<math data-latex=\"(g^x,g^y,g^{xy})\"><semantics><mrow><mo form=\"prefix\" stretchy=\"false\">(<\/mo><msup><mi>g<\/mi><mi>x<\/mi><\/msup><mo separator=\"true\">,<\/mo><msup><mi>g<\/mi><mi>y<\/mi><\/msup><mo separator=\"true\">,<\/mo><msup><mi>g<\/mi><mrow><mi>x<\/mi><mi>y<\/mi><\/mrow><\/msup><mo form=\"postfix\" stretchy=\"false\">)<\/mo><\/mrow><annotation encoding=\"application\/x-tex\">(g^x,g^y,g^{xy})<\/annotation><\/semantics><\/math>\u662f\u4e00\u4e2aDiffie-Hellman\u4e09\u5143\u7ec4\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>CDH\uff1a<\/strong>\u8ba1\u7b97\u6027\u56f0\u96be\u95ee\u9898\u3002<\/p>\n\n\n\n<p><strong>CDH\u7684\u8868\u73b0\u5f62\u5f0f\uff1a<\/strong>\u8bbeG\u662f\u4e00\u4e2a\u5927\u7d20\u6570p\u9636\u5faa\u73af\u7fa4\uff0cg\u662f\u7fa4G\u7684\u751f\u6210\u5143\uff0c\u5219\u7ed9\u5b9a\u5143\u7ec4<math data-latex=\"(g,g^x,g^y)\\in G^3\"><semantics><mrow><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>g<\/mi><mo separator=\"true\">,<\/mo><msup><mi>g<\/mi><mi>x<\/mi><\/msup><mo separator=\"true\">,<\/mo><msup><mi>g<\/mi><mi>y<\/mi><\/msup><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>\u2208<\/mo><msup><mi>G<\/mi><mn>3<\/mn><\/msup><\/mrow><annotation encoding=\"application\/x-tex\">(g,g^x,g^y)\\in G^3<\/annotation><\/semantics><\/math>\uff0c\u5176\u4e2d\uff0c<math data-latex=\"(x,y)\\in Z_p^*\"><semantics><mrow><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>x<\/mi><mo separator=\"true\">,<\/mo><mi>y<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mo>\u2208<\/mo><msubsup><mi>Z<\/mi><mi>p<\/mi><mo form=\"prefix\" stretchy=\"false\">\u2217<\/mo><\/msubsup><\/mrow><annotation encoding=\"application\/x-tex\">(x,y)\\in Z_p^*<\/annotation><\/semantics><\/math>\uff0c\u8ba1\u7b97<math data-latex=\"g^{xy}\"><semantics><msup><mi>g<\/mi><mrow><mi>x<\/mi><mi>y<\/mi><\/mrow><\/msup><annotation encoding=\"application\/x-tex\">g^{xy}<\/annotation><\/semantics><\/math>\u662f\u56f0\u96be\u7684\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5bc6\u7801\u5b66\u6982\u5ff5:<\/p>\n\n\n\n<p><strong>\u516c\u94a5\u52a0\u5bc6\u65b9\u6848\u7684\u5b89\u5168\u6027\u6307\u65b9\u6848\u5728\u7279\u5b9a\u7684\u654c\u624b\u6a21\u578b\u4e2d\u6240\u80fd\u8fbe\u5230\u7684\u5b89\u5168\u6027\u76ee\u6807\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u89e3\u5bc6\u8c15\u8a00\u673a\uff1a<\/strong>\u7528\u4e8e\u6a21\u62df\u654c\u624b\u7684\u80fd\u529b\u53ca\u5176\u6240\u80fd\u5f97\u5230\u7684\u653b\u51fb\u6761\u4ef6\u3002<\/p>\n\n\n\n<p><strong>\u8bed\u4e49\u5b89\u5168\u6027\uff1a<\/strong>\u5373\u4f7f\u5df2\u77e5\u67d0\u4e2a\u660e\u6587\u7684\u5bc6\u6587\uff0c\u654c\u624b\u4e5f\u7684\u4e0d\u51fa\u8be5\u660e\u6587\u7684\u4efb\u4f55\u90e8\u5206\u4fe1\u606f\u3002<\/p>\n\n\n\n<p><strong>\u4e0d\u53ef\u533a\u5206\u6027\uff1a<\/strong>\u5df2\u77e5\u5bc6\u6587C\u662f\u4e24\u4e2a\u660e\u6587m_0\u548cm_1\u4e4b\u4e00\u7684\u52a0\u5bc6\u7684\u7ed3\u679c\uff0c\u82e5\u6ca1\u6709\u591a\u9879\u5f0f\u65f6\u95f4\u7b97\u6cd5\u53ef\u533a\u5206\u51faC\u662fm_0\u8fd8\u662fm_1\u7684\u5bc6\u6587\uff0c\u5219\u79f0\u8be5\u65b9\u6848\u6ee1\u8db3\u4e0d\u53ef\u533a\u5206\u6027\u3002<\/p>\n\n\n\n<p><strong>CPA(Chosen-Plaintext Attack)\uff1a<\/strong>\u9009\u62e9\u660e\u6587\u653b\u51fb\u3002\u653b\u51fb\u8005\u53ef\u4ee5\u52a0\u5bc6\u4efb\u610f\u4ed6\u9009\u4e2d\u7684\u660e\u6587\uff0c\u7136\u540e\u901a\u8fc7\u5206\u6790\u5bf9\u5e94\u7684\u5bc6\u6587\u662f\u5426\u76f8\u540c\u6765\u7834\u89e3\u5bc6\u94a5\u3002\u5c31\u50cf\u4f60\u6709\u4e00\u4e2a\u80fd\u968f\u4fbf\u7528\u7684\u9b54\u6cd5\u9501\u3002\u4f60\u53ef\u4ee5\u62ff\u4efb\u4f55\u94a5\u5319\uff08\u660e\u6587\uff09\u53bb\u6345\u5b83\uff0c\u770b\u5b83\u53d8\u6210\u4ec0\u4e48\u5f62\u72b6\uff08\u5bc6\u6587\uff09\uff0c\u4ece\u800c\u731c\u51fa\u9501\u82af\uff08\u5bc6\u94a5\uff09\u7684\u7ed3\u6784\u3002<\/p>\n\n\n\n<p><strong>CCA(Chosen-Ciphertext Attaack)\uff1a<\/strong>\u9009\u62e9\u5bc6\u6587\u653b\u51fb\u3002\u653b\u51fb\u8005\u53ef\u4ee5\u89e3\u5bc6\u4efb\u610f\u4ed6\u9009\u4e2d\u7684\u5bc6\u6587\uff0c\u7136\u540e\u901a\u8fc7\u5206\u6790\u5bf9\u5e94\u7684\u660e\u6587\u6765\u7834\u89e3\u5bc6\u94a5\u3002\u5c31\u50cf\u4f60\u6709\u4e00\u4e2a\u80fd\u968f\u4fbf\u5f00\u7684\u9b54\u6cd5\u94a5\u5319\u3002\u4f60\u53ef\u4ee5\u628a\u5b83\u6345\u8fdb\u4efb\u4f55\u9501\uff08\u5bc6\u6587\uff09\u91cc\uff0c\u770b\u5b83\u80fd\u6253\u5f00\u4ec0\u4e48\u6837\u7684\u95e8\uff08\u660e\u6587\uff09\uff0c\u4ece\u800c\u53cd\u63a8\u51fa\u8fd9\u628a\u94a5\u5319\uff08\u5bc6\u94a5\uff09\u7684\u9f7f\u5f62\u3002<\/p>\n\n\n\n<p><strong>CCA1\uff1a<\/strong>\u975e\u9002\u5e94\u6027\u9009\u62e9\u5bc6\u6587\u653b\u51fb\uff1b\u975e\u9002\u5e94\u6027\u6307\u7684\u662f\u654c\u624b\u83b7\u5f97\u76ee\u6807\u5bc6\u6587C\u540e\u5c31\u4e0d\u518d\u5141\u8bb8\u8be2\u95ee\u89e3\u5bc6\u8c15\u8a00\u673a\u3002<\/p>\n\n\n\n<p><strong>CCA2\uff1a<\/strong>\u9002\u5e94\u6027\u9009\u62e9\u5bc6\u6587\u653b\u51fb\uff1bCCA2\u5728CCA1\u7684\u57fa\u7840\u4e0a\uff0c\u654c\u624b\u5728\u7ed9\u5b9a\u76ee\u6807\u5bc6\u6587C\u540e\uff0c\u8fd8\u53ef\u4ee5\u9002\u5e94\u6027\u9009\u62e9\u5bc6\u6587\u5e76\u8be2\u95ee\u8c15\u8a00\u673a\u83b7\u5f97\u76f8\u5e94\u89e3\u5bc6\uff0c\u4f46\u654c\u624b\u4e0d\u5141\u8bb8\u5c06\u76ee\u6807\u5bc6\u6587C\u4f5c\u4e3a\u89e3\u5bc6\u8c15\u8a00\u673a\u7684\u8f93\u5165\u3002\u3010\u73b0\u6709\u65b9\u6848\u53c2\u8003\u8fd9\u4e2a\u6807\u51c6\u3011<\/p>\n\n\n\n<p>CCA\u5b89\u5168\u7684\u65b9\u6848\uff0c\u5fc5\u987b\u662f\u975e\u53ef\u5851\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\u654c\u624b\u8f93\u5165\u7684\u5bc6\u6587c&#8217;\u4e0e\u771f\u5b9e\u7684\u5bc6\u6587c\u4e0d\u80fd\u5185\u5bb9\u76f8\u5173\u3002<\/p>\n\n\n\n<p><strong>\u6700\u57fa\u672c\u7684\u5b89\u5168\u76ee\u6807<\/strong>\uff1a\u6ee1\u8db3\u5355\u5411\u6027\u52a0\u5bc6(One Wayness, OW)\u3010\u6700\u5f31\u3011<\/p>\n\n\n\n<p><strong>\u5e38\u89c1\u5b89\u5168\u6027\u76ee\u6807\uff1a<\/strong>\u5355\u5411\u6027(OW)\uff1b\u8bed\u4e49\u5b89\u5168\u6027(Semantic Security, SS)\uff1b\u4e0d\u53ef\u533a\u5206\u6027(Indistinguish ability,IND)\u3010SS\u4e0eIND\u5b89\u5168\u6027\u7b49\u4ef7\u3011<\/p>\n\n\n\n<p><strong>\u6700\u5f3a\u5b89\u5168\u6027\u76ee\u6807<\/strong>\uff1a\u975e\u5ef6\u5c55\u6027(Non-Malleability,NM)\u3010\u5b89\u5168\u6027\u6700\u5f3a\uff0c\u65e0\u6cd5\u8bc1\u660e\u3011<\/p>\n\n\n\n<p><strong>IND-CCA2<\/strong>\u88ab\u516c\u8ba4\u4e3a\u516c\u94a5\u52a0\u5bc6\u65b9\u6848\u7684\u6807\u51c6\u5b89\u5168\u6027\u6982\u5ff5\uff0c\u4e5f\u662f\u5f53\u4eca\u516c\u94a5\u52a0\u5bc6\u65b9\u6848\u5019\u9009\u6807\u51c6\u7684\u6700\u91cd\u8981\u7684\u8981\u6c42\u4e4b\u4e00\u3002<\/p>\n\n\n\n<p>\u901a\u5e38\uff0c\u516c\u94a5\u52a0\u5bc6\u65b9\u6848\u6ee1\u8db3\u9009\u62e9\u5bc6\u6587\u5b89\u5168\u6027\uff0c\u6307\u6ee1\u8db3IND-CCA2\u5b89\u5168\u6027\uff0c\u7b80\u8bb0\u4e3aIND-CCA\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>ElGamal\u52a0\u5bc6\u65b9\u6848:<\/p>\n\n\n\n<p>ElGamal\u52a0\u5bc6\u65b9\u6848\u5728CPA\u653b\u51fb\u4e0b\u6ee1\u8db3IND\u5b89\u5168\u6027\uff0c\u5373IND-CPA\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n<p>ElGamal\u52a0\u5bc6\u65b9\u6848\u7684\u5b89\u5168\u6027\u57fa\u4e8eDDH\u95ee\u9898\uff0c\u662f\u6982\u7387\u52a0\u5bc6\u7684\u601d\u60f3\u3002<\/p>\n\n\n\n<p>KeyGen\uff1a\u751f\u6210\u4e00\u4e2ap\u9636\u4e58\u6cd5\u5faa\u73af\u7fa4<math data-latex=\"G=<g&gt;\"><semantics><mrow><mi>G<\/mi><mo rspace=\"0em\">=<\/mo><mo lspace=\"0em\">&lt;<\/mo><mi>g<\/mi><mo>&gt;<\/mo><\/mrow><annotation encoding=\"application\/x-tex\">G=&lt;g&gt;<\/annotation><\/semantics><\/math>\uff0cp\u4e3ak\u6bd4\u7279\u5927\u7d20\u6570\u3002\u968f\u673a\u9009\u53d6<math data-latex=\"x \\in Z_p^*\"><semantics><mrow><mi>x<\/mi><mo>\u2208<\/mo><msubsup><mi>Z<\/mi><mi>p<\/mi><mo form=\"prefix\" stretchy=\"false\">\u2217<\/mo><\/msubsup><\/mrow><annotation encoding=\"application\/x-tex\">x \\in Z_p^*<\/annotation><\/semantics><\/math>\uff0c\u8ba1\u7b97<math data-latex=\"y=g^x\"><semantics><mrow><mi>y<\/mi><mo>=<\/mo><msup><mi>g<\/mi><mi>x<\/mi><\/msup><\/mrow><annotation encoding=\"application\/x-tex\">y=g^x<\/annotation><\/semantics><\/math>\uff1b\u8f93\u51fa\u516c\u94a5<math data-latex=\"pk=(p,g,y)\"><semantics><mrow><mi>p<\/mi><mi>k<\/mi><mo>=<\/mo><mo form=\"prefix\" stretchy=\"false\">(<\/mo><mi>p<\/mi><mo separator=\"true\">,<\/mo><mi>g<\/mi><mo separator=\"true\">,<\/mo><mi>y<\/mi><mo form=\"postfix\" stretchy=\"false\">)<\/mo><\/mrow><annotation encoding=\"application\/x-tex\">pk=(p,g,y)<\/annotation><\/semantics><\/math>\u548c\u79c1\u94a5<math data-latex=\"sk=x\"><semantics><mrow><mi>s<\/mi><mi>k<\/mi><mo>=<\/mo><mi>x<\/mi><\/mrow><annotation encoding=\"application\/x-tex\">sk=x<\/annotation><\/semantics><\/math>.<\/p>\n\n\n\n<p>Encrypt(m,pk)\uff1a\u968f\u673a\u9009\u62e9<math data-latex=\"r \\in Z_p^*\"><semantics><mrow><mi>r<\/mi><mo>\u2208<\/mo><msubsup><mi>Z<\/mi><mi>p<\/mi><mo form=\"prefix\" stretchy=\"false\">\u2217<\/mo><\/msubsup><\/mrow><annotation encoding=\"application\/x-tex\">r \\in Z_p^*<\/annotation><\/semantics><\/math>\uff0c\u8ba1\u7b97<math data-latex=\"U=g^r\"><semantics><mrow><mi>U<\/mi><mo>=<\/mo><msup><mi>g<\/mi><mi>r<\/mi><\/msup><\/mrow><annotation encoding=\"application\/x-tex\">U=g^r<\/annotation><\/semantics><\/math>\u548c<math data-latex=\"V=y^r \\cdot m\"><semantics><mrow><mi>V<\/mi><mo>=<\/mo><msup><mi>y<\/mi><mi>r<\/mi><\/msup><mo>\u22c5<\/mo><mi>m<\/mi><\/mrow><annotation encoding=\"application\/x-tex\">V=y^r \\cdot m<\/annotation><\/semantics><\/math>\uff1b\u8f93\u51fa\u5bc6\u6587C=(U,V)<\/p>\n\n\n\n<p>Decrypt(C,sk)\uff1a\u8f93\u51fa\u660e\u6587 <math data-latex=\"m= V\/U^x ={y^r \\cdot m} \/ (g^r)^x = y^r \\cdot m \/y^r = m\"><semantics><mrow><mi>m<\/mi><mo>=<\/mo><mi>V<\/mi><mi>\/<\/mi><msup><mi>U<\/mi><mi>x<\/mi><\/msup><mo>=<\/mo><mrow><msup><mi>y<\/mi><mi>r<\/mi><\/msup><mo>\u22c5<\/mo><mi>m<\/mi><\/mrow><mi>\/<\/mi><mo form=\"prefix\" stretchy=\"false\">(<\/mo><msup><mi>g<\/mi><mi>r<\/mi><\/msup><msup><mo form=\"postfix\" stretchy=\"false\">)<\/mo><mi>x<\/mi><\/msup><mo>=<\/mo><msup><mi>y<\/mi><mi>r<\/mi><\/msup><mo>\u22c5<\/mo><mi>m<\/mi><mi>\/<\/mi><msup><mi>y<\/mi><mi>r<\/mi><\/msup><mo>=<\/mo><mi>m<\/mi><\/mrow><annotation encoding=\"application\/x-tex\">m= V\/U^x ={y^r \\cdot m} \/ (g^r)^x = y^r \\cdot m \/y^r = m<\/annotation><\/semantics><\/math><\/p>\n\n\n\n<p>\u53ef\u8bc1\u660e\u5b89\u5168\u6027\u7684\u57fa\u672c\u65b9\u6cd5\u662f\u89c4\u7ea6\u8bba\u65ad\uff0c\u5373\u5c06\u5bc6\u7801\u65b9\u6848\u7684\u5b89\u5168\u6027\u89c4\u7ea6\u4e3a\u67d0\u4e2a\u6216\u591a\u4e2a\u6781\u4e3a\u672c\u539f\u7684\u5b89\u5168\u6027\u6216\u56f0\u96be\u6027\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u8981\u8bb0\u5f55\u4e00\u4e0b\u4e3b\u6d41\u4f53\u7cfb\u4ee5\u53ca\u53ef\u8bc1\u660e\u5b89\u5168\u65b9\u6cd5 1. \u4f20\u7edf\u516c\u94a5\u57fa\u7840\u8bbe\u65bd\uff08PKI\uff09\u4f53\u7cfb \u8fd9\u662f\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\uff0c\u6bd4\u5982\u7528\u5728HTT [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-cryptography"],"_links":{"self":[{"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":1,"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":135,"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/posts\/134\/revisions\/135"}],"wp:attachment":[{"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.b1ny.top\/index.php\/wp-json\/wp\/v2\/tags?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}