⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 generate

📁 OpenSSL 0.9.8k 最新版OpenSSL
💻
字号:
From: stewarts@ix.netcom.com (Bill Stewart)Newsgroups: sci.cryptSubject: Re: Diffie-Hellman key exchangeDate: Wed, 11 Oct 1995 23:08:28 GMTOrganization: Freelance Information ArchitectLines: 32Message-ID: <45hir2$7l8@ixnews7.ix.netcom.com>References: <458rhn$76m$1@mhadf.production.compuserve.com>NNTP-Posting-Host: ix-pl4-16.ix.netcom.comX-NETCOM-Date: Wed Oct 11  4:09:22 PM PDT 1995X-Newsreader: Forte Free Agent 1.0.82Kent Briggs <72124.3234@CompuServe.COM> wrote:>I have a copy of the 1976 IEEE article describing the>Diffie-Hellman public key exchange algorithm: y=a^x mod q.  I'm>looking for sources that give examples of secure a,q pairs and>possible some source code that I could examine.q should be prime, and ideally should be a "strong prime",which means it's of the form 2n+1 where n is also prime.q also needs to be long enough to prevent the attacks LaMacchia andOdlyzko described (some variant on a factoring attack which generatesa large pile of simultaneous equations and then solves them);long enough is about the same size as factoring, so 512 bits may notbe secure enough for most applications.  (The 192 bits used by"secure NFS" was certainly not long enough.)a should be a generator for q, which means it needs to berelatively prime to q-1.   Usually a small prime like 2, 3 or 5 willwork.  ....Date: Tue, 26 Sep 1995 13:52:36 MSTFrom: "Richard Schroeppel" <rcs@cs.arizona.edu>To: karnCc: ho@cs.arizona.eduSubject: random large primesSince your prime is really random, proving it is hard.My personal limit on rigorously proved primes is ~350 digits.If you really want a proof, we should talk to Francois Morain,or the Australian group.If you want 2 to be a generator (mod P), then you need itto be a non-square.  If (P-1)/2 is also prime, thennon-square == primitive-root for bases << P.In the case at hand, this means 2 is a generator iff P = 11 (mod 24).If you want this, you should restrict your sieve accordingly.3 is a generator iff P = 5 (mod 12).5 is a generator iff P = 3 or 7 (mod 10).2 is perfectly usable as a base even if it's a non-generator, sinceit still covers half the space of possible residues.  And aneavesdropper can always determine the low-bit of your exponent fora generator anyway.Rich  rcs@cs.arizona.edu

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -