亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 23-06.html

?? 應用密碼學電子書籍
?? HTML
字號:
<html><head><TITLE>APPLIED CRYPTOGRAPHY, SECOND EDITION: Protocols, Algorithms, and Source Code in C:Special Algorithms for Protocols</TITLE>
<!-- BEGIN HEADER --><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><SCRIPT><!--function displayWindow(url, width, height) {        var Win = window.open(url,"displayWindow",'width=' + width +',height=' + height + ',resizable=1,scrollbars=yes');}//--></SCRIPT></HEAD><body bgcolor="ffffff" link="#006666" alink="#006666" vlink="#006666"><P>
<CENTER><B>Applied Cryptography, Second Edition: Protocols,  Algorthms, and Source Code in C (cloth)</B>
<FONT SIZE="-2">
<BR>
<I>(Publisher: John Wiley & Sons, Inc.)</I>
<BR>
Author(s): Bruce Schneier
<BR>
ISBN: 0471128457
<BR>
Publication Date: 01/01/96
</FONT></CENTER>
<P>


<!-- Empty Reference Subhead -->

<!--ISBN=0471128457//-->
<!--TITLE=APPLIED CRYPTOGRAPHY, SECOND EDITION: Protocols, Algorithms, and Source Code in C//-->
<!--AUTHOR=Bruce Schneier//-->
<!--PUBLISHER=Wiley Computer Publishing//-->
<!--CHAPTER=23//-->
<!--PAGES=540-543//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->

<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="23-05.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="23-07.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H3><A NAME="Heading7"></A><FONT COLOR="#000077">23.6 Computing with Encrypted Data</FONT></H3>
<P><FONT SIZE="+1"><B>The Discrete Logarithm Problem</B></FONT></P>
<P>There is a large prime, <I>p,</I> and a generator, <I>g.</I> Alice has a particular value for <I>x,</I> and wants to know <I>e,</I> such that</P>
<DL>
<DD><I>g<SUP>e</SUP></I> &#8801; <I>x</I> (mod <I>p</I>)
</DL>
<P>This is a hard problem, and Alice lacks the computational power to compute the result. Bob has the power to solve the problem&#151;he represents the government, or a large computing organization, or whatever. Here&#146;s how Bob can do it without Alice revealing <I>x</I> [547,4]:</P>
<DL>
<DD><B>(1)</B>&nbsp;&nbsp;Alice chooses a random number, <I>r,</I> less than <I>p.</I>
<DD><B>(2)</B>&nbsp;&nbsp;Alice computes
<DL>
<DD><I>x'</I> = <I>xg<SUP>r</SUP></I> mod <I>p</I>
</DL>
<DD><B>(3)</B>&nbsp;&nbsp;Alice asks Bob to solve
<DL>
<DD><I>g<SUP>e'</SUP></I> &#8801; <I>x'</I> (mod <I>p</I>)
</DL>
<DD><B>(5)</B>&nbsp;&nbsp;Bob computes <I>e'</I> and sends it to Alice.
<DD><B>(6)</B>&nbsp;&nbsp;Alice recovers <I>e</I> by computing
</DL>
<DL>
<DD><I>e</I> = (<I>e'</I> - <I>r</I>) mod (<I>p</I> - 1)
</DL>
<P>Similar protocols for the quadratic residuosity problem and for the primitive root problem are in [3,4]. (See also Section 4.8.)
</P>
<H3><A NAME="Heading8"></A><FONT COLOR="#000077">23.7 Fair Coin Flips</FONT></H3>
<P>The following protocols allow Alice and Bob to flip a fair coin over a data network (see Section 4.9) [194]. This is an example of flipping a coin into a well (see Section 4.10). At first, only Bob knows the result of the coin toss and tells it to Alice. Later, Alice may check to make sure that Bob told her the correct outcome of the toss.
</P>
<P><FONT SIZE="+1"><B><I>Coin Flipping Using Square Roots</I></B></FONT></P>
<P>Coin-flip subprotocol:
</P>
<DL>
<DD><B>(1)</B>&nbsp;&nbsp;Alice chooses two large primes, <I>p</I> and <I>q,</I> and sends their product, <I>n</I> to Bob.
<DD><B>(2)</B>&nbsp;&nbsp;Bob chooses a random positive integer, <I>r,</I> such that <I>r</I> is less than <I>n</I>/2. Bob computes
<DL>
<DD><I>z</I> = <I>r<SUP>2</SUP></I> mod <I>n</I>
</DL>
<BR>and sends <I>z</I> to Alice.
<DD><B>(3)</B>&nbsp;&nbsp;Alice computes the four square roots of <I>z</I> (mod <I>n</I>). She can do this because she knows the factorization of <I>n.</I> Let&#146;s call them &#43;x, -x, &#43;y, and -y. Call <I>x'</I> the smaller of these two numbers:
<DL>
<DD><I>x</I> mod <I>n</I>
<DD><I>-x</I> mod <I>n</I>
</DL>
<BR>Similarly, call <I>y'</I> the smaller of these two numbers:
<DL>
<DD><I>y</I> mod <I>n</I>
<DD><I>-y</I> mod <I>n</I>
</DL>
<BR>Note that <I>r</I> is equal either to <I>x'</I> or <I>y'.</I>
<DD><B>(4)</B>&nbsp;&nbsp;Alice guesses whether <I>r</I> = <I>x'</I> or <I>r</I> = <I>y',</I> and sends her guess to Bob.
<DD><B>(5)</B>&nbsp;&nbsp;If Alice&#146;s guess is correct, the result of the coin flip is heads. If Alice&#146;s guess is incorrect, the result of the coin flip is tails. Bob announces the result of the coin flip.
</DL>
<P>Verification subprotocol:
</P>
<DL>
<DD><B>(6)</B>&nbsp;&nbsp;Alice sends <I>p</I> and <I>q</I> to Bob.
<DD><B>(7)</B>&nbsp;&nbsp;Bob computes <I>x'</I> and <I>y'</I> and sends them to Alice.
<DD><B>(8)</B>&nbsp;&nbsp;Alice calculates <I>r.</I>
</DL>
<P>Alice has no way of knowing <I>r,</I> so her guess is real. She only tells Bob one bit of her guess in step (4) to prevent Bob from getting both <I>x'</I> and <I>y'</I>. If Bob has both of those numbers, he can change <I>r</I> after step (4).</P>
<P><FONT SIZE="+1"><B><I>Coin Flipping Using Exponentiation Modulo <I>p</I>
</I></B></FONT></P>
<P>Exponentiation modulo a prime number, <I>p</I>, is used as a one-way function in this protocol [1306]:</P>
<P>Coin-flip subprotocol:</P>
<DL>
<DD><B>(1)</B>&nbsp;&nbsp;Alice chooses a prime number, <I>p,</I> in such a way that the factorization of <I>p</I> - 1 is known and contains at least one large prime.
<DD><B>(2)</B>&nbsp;&nbsp;Bob selects two primitive elements, <I>h</I> and <I>t,</I> in GF(<I>p</I>). He sends them to Alice.
<DD><B>(3)</B>&nbsp;&nbsp;Alice checks that <I>h</I> and <I>t</I> are primitive and then chooses a random integer <I>x,</I> relatively prime to <I>p</I> - 1. She then computes one of the two values:
<DL>
<DD><I>y</I> = <I>h<SUP>x</SUP></I> mod <I>p,</I> or <I>y</I> = <I>t<SUP>x</SUP></I> mod <I>p</I>
</DL>
<BR>She sends <I>y</I> to Bob.
<DD><B>(4)</B>&nbsp;&nbsp;Bob guesses whether Alice calculated <I>y</I> as afunction of <I>h</I> or <I>t,</I> and sends his guess to Alice.
<DD><B>(5)</B>&nbsp;&nbsp;If Bob&#146;s guess is correct, the result of the coin flip is heads. If Bob&#146;s guess is incorrect, the result of the coin flip is tails. Alice announces the result of the coin flip.
</DL>
<P>Verification subprotocol:
</P>
<DL>
<DD><B>(6)</B>&nbsp;&nbsp;Alice reveals <I>x</I> to Bob. Bob computes <I>h<SUP>x</SUP></I> mod <I>p</I> and <I>t<SUP>x</SUP></I> mod <I>p,</I> to confirm that Alice has played fairly and to verify the result of the toss. He also checks that <I>x</I> and <I>p</I> - 1 are relatively prime.
</DL>
<P>For Alice to cheat, she has to know two integers, <I>x</I> and <I>x',</I> such that <I>h<SUP>x</SUP></I> &#8801;<I>t<SUP>x'</SUP></I> (mod <I>p</I>). If she knew those values,she would be able to calculate:</P>
<DL>
<DD><I>log</I><SUB>t</SUB> <I>h</I> = <I>x'x<SUP>-1</SUP></I> mod <I>p</I> - 1 and <I>log</I><SUB>t</SUB>h = x<SUP>-1</SUP>x' mod <I>p</I> - 1
</DL>
<P>These are hard problems.
</P>
<P>Alice would be able to do this if she knew <I>log</I><SUB>t</SUB> h, but Bob chooses <I>h</I> and <I>t</I> in step (2). Alice has no other recourse except to try to compute the discrete logarithm. Alice could also attempt to cheat by choosing an <I>x</I> that is not relatively prime to <I>p</I> -1, but Bob will detect that in step (6).</P>
<P>Bob can cheat if <I>h</I> and <I>t</I> are not primitive in GF(<I>p</I>), but Alice can easily check that after step (2) because she knows the prime factorization of <I>p</I> -1.</P>
<P>One nice thing about this protocol is that if Alice and Bob want to flip multiple coins, they can use the same values for <I>p, h,</I> and <I>t.</I> Alice just generates a new <I>x,</I> and the protocol continues from step (3).</P>
<P><FONT SIZE="+1"><B><I>Coin Flipping Using Blum Integers</I></B></FONT></P>
<P>Blum integers can be used in a coin-flipping protocol.
</P>
<DL>
<DD><B>(1)</B>&nbsp;&nbsp;Alice generates a Blum integer, <I>n,</I> a random <I>x</I> relatively prime to <I>n, x</I><SUB>0</SUB> = <I>x<SUP>2</SUP></I> mod <I>n,</I> and <I>x</I><SUB>1</SUB> = <I>x</I><SUB>0</SUB><SUP>2</SUP> mod <I>n.</I> She sends <I>n</I> and <I>x</I><SUB>1</SUB> to Bob.
<DD><B>(2)</B>&nbsp;&nbsp;Bob guesses whether <I>x</I><SUB>0</SUB> is even or odd.
<DD><B>(3)</B>&nbsp;&nbsp;Alice sends <I>x</I> to Bob.
<DD><B>(4)</B>&nbsp;&nbsp;Bob checks that <I>n</I> is a Blum integer (Alice would have to give Bob the factors of <I>n</I> and proofs of their primality, or execute some zero-knowledge protocol to convince him that <I>n</I> is a Blum integer), and he verifies that <I>x</I><SUB>0</SUB> = <I>x<SUP>2</SUP></I> mod <I>n</I> and <I>x</I><SUB>1</SUB> = <I>x</I><SUB>0</SUB><SUP>2</SUP> mod <I>n.</I> If all this checks out, Bob wins the flip if he guessed correctly.
</DL>
<P>It is crucial that <I>n</I> be a Blum integer. Otherwise, Alice may be able to find an <I>x'</I><SUB>0</SUB> such that <I>x'</I><SUB>0</SUB><SUP>2</SUP> mod <I>n</I> =<I>x</I><SUB>0</SUB> <SUP>2</SUP> mod <I>n</I> =<I>x</I><SUB>1</SUB> , where <I>x'</I><SUB>0</SUB> is also a quadratic residue. If <I>x</I><SUB>0</SUB> were even and <I>x'</I><SUB>0</SUB> were odd (or vice versa), Alice could freely cheat.</P>
<H3><A NAME="Heading9"></A><FONT COLOR="#000077">23.8 One-Way Accumulators</FONT></H3>
<P>There is a simple one-way accumulator function [116] (see Section 4.12):
</P>
<DL>
<DD>A(<I>x</I><SUB>i</SUB>, <I>y</I>) = <I>x</I><SUB>i-1</SUB><SUP>y</SUP> mod <I>n</I>
</DL>
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="23-05.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="23-07.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>

[an error occurred while processing this directive]
</body></html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区免费看| 欧美日韩成人高清| 欧美日韩国产综合草草| 久久久久久夜精品精品免费| 亚洲精品亚洲人成人网在线播放| 美女尤物国产一区| 91网页版在线| 久久午夜老司机| 日韩成人午夜电影| 日本高清不卡一区| 国产精品拍天天在线| 蜜桃精品视频在线观看| 欧美日韩亚洲综合| 亚洲天堂成人网| 国产suv精品一区二区6| 欧美一二三区在线观看| 亚洲国产cao| 91在线播放网址| 中文在线一区二区| 国产一区二区三区香蕉| 91精品久久久久久久99蜜桃| 亚洲国产欧美日韩另类综合 | 成人免费一区二区三区视频| 国模无码大尺度一区二区三区| 欧美伦理视频网站| 图片区小说区区亚洲影院| av不卡一区二区三区| 国产精品乱人伦中文| 久久精品国产**网站演员| 91麻豆精品国产91久久久久久久久 | 欧美色电影在线| 国产在线看一区| 国产一区二区影院| 高清在线不卡av| 国产成人丝袜美腿| 久草热8精品视频在线观看| 自拍偷拍国产亚洲| 欧美国产一区二区在线观看| 精品国精品国产尤物美女| 91亚洲男人天堂| 国产一区亚洲一区| 久久99精品网久久| 日韩精品三区四区| 奇米色777欧美一区二区| 午夜亚洲福利老司机| 亚洲综合丁香婷婷六月香| 亚洲一区二区高清| 亚洲成人精品影院| 蜜臀久久久99精品久久久久久| 亚洲v精品v日韩v欧美v专区| 亚洲国产精品一区二区www在线| 亚洲欧美另类图片小说| 亚洲精品国久久99热| 亚洲成a人v欧美综合天堂下载| 国产精华液一区二区三区| 国产一区不卡在线| 精品一区二区久久| 91官网在线免费观看| 欧美日韩情趣电影| 日韩午夜激情视频| 成人激情校园春色| heyzo一本久久综合| 在线观看av一区二区| 中国av一区二区三区| 欧美日本一区二区三区四区| 91日韩在线专区| 欧美日韩一区高清| 另类调教123区 | 蜜桃视频一区二区三区| 久久精品亚洲一区二区三区浴池| 99久久国产综合精品麻豆| 秋霞影院一区二区| 日韩精品在线网站| 国产日韩欧美激情| 蜜桃久久久久久久| 欧美唯美清纯偷拍| 欧美成人a∨高清免费观看| 精品乱人伦一区二区三区| 国产精品久久久久久久久果冻传媒| 国产乱人伦偷精品视频免下载| 欧美精彩视频一区二区三区| 亚洲1区2区3区视频| 久久久午夜电影| 91黄色小视频| 国产成人a级片| 视频一区中文字幕| 国产精品日韩精品欧美在线| 91精品国产色综合久久不卡电影| jlzzjlzz欧美大全| 久久国产精品第一页| 亚洲国产日韩综合久久精品| 中文字幕制服丝袜一区二区三区| 日韩欧美一级二级三级| 在线观看日韩精品| av激情综合网| 成人综合婷婷国产精品久久蜜臀 | 不卡一区在线观看| 美女视频一区二区三区| 亚洲自拍偷拍av| 亚洲免费资源在线播放| 国产欧美一区二区精品性色超碰| 91精品国产综合久久久久久久久久 | 欧美一级免费观看| 成人h动漫精品一区二| 国精产品一区一区三区mba桃花| 婷婷中文字幕综合| 亚洲一区二区在线免费观看视频| 日韩一区有码在线| 国产欧美日韩麻豆91| 久久综合色婷婷| 欧美r级电影在线观看| 日韩精品一区二区三区中文不卡| 这里是久久伊人| 欧美一区二区视频观看视频| 欧洲av在线精品| 欧美在线免费观看亚洲| 在线观看www91| 在线观看日韩高清av| 91成人在线精品| 欧美日韩激情一区二区三区| 欧美日韩免费视频| 欧美肥妇free| 日韩一二三四区| 久久综合狠狠综合久久综合88| 26uuu另类欧美| 中文字幕免费不卡| 国产精品乱人伦中文| 亚洲欧美欧美一区二区三区| 一区二区在线观看av| 夜夜嗨av一区二区三区四季av| 一区二区三区美女视频| 亚洲丰满少妇videoshd| 日韩高清中文字幕一区| 麻豆91小视频| 国产成a人亚洲精| 91天堂素人约啪| 欧美日韩精品一区二区三区四区| 91精品国产综合久久福利软件| 日韩欧美久久一区| 中文字幕欧美日本乱码一线二线| 中文字幕一区二区三区在线不卡| 一区二区三区在线观看视频| 婷婷国产在线综合| 国产精品一区二区视频| av在线播放不卡| 欧美精品在线观看一区二区| 26uuu亚洲综合色| 一区二区三区日韩精品视频| 免费久久精品视频| 91视频一区二区| 日韩一区二区电影| 国产精品久久久久久久久免费相片 | 日韩一级黄色片| 国产女人18毛片水真多成人如厕| 成人免费小视频| 日韩中文字幕91| 国产成人精品一区二区三区四区| 色哟哟一区二区在线观看| 欧美大胆一级视频| 一区二区久久久久久| 精品一区二区三区免费毛片爱| 91在线云播放| 久久久久久久性| 日韩电影在线一区| aaa欧美日韩| 精品三级av在线| 午夜免费久久看| 91视视频在线观看入口直接观看www| 欧美一区二区三区啪啪| 一区二区三区欧美日| 国产成人免费在线视频| 欧美精品黑人性xxxx| 亚洲欧洲美洲综合色网| 韩国av一区二区三区四区| 欧美亚洲国产一区在线观看网站 | 久久久国产午夜精品| 日本中文字幕一区二区视频 | 国产suv一区二区三区88区| 4hu四虎永久在线影院成人| 亚洲欧洲韩国日本视频| 国产精品一区二区三区网站| 日韩精品一区二区三区视频播放| 亚洲一区二区欧美日韩| 91亚洲精品久久久蜜桃网站| 国产精品色在线| 国产成人自拍在线| 久久婷婷综合激情| 欧美a级理论片| 9191成人精品久久| 午夜伦欧美伦电影理论片| 91蝌蚪国产九色| 亚洲欧洲无码一区二区三区| 国产aⅴ综合色| 国产欧美一区二区三区在线老狼| 精品一区二区三区免费播放| 日韩欧美在线123| 老色鬼精品视频在线观看播放| 91麻豆精品国产无毒不卡在线观看 | 精品一区二区三区久久| 精品免费99久久|