🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.crypt
Article #1041

Re: pgp2.0 - what is an appropriate key length?

#1041
From: Marshall G. Flax
Date: Mon, 28 Sep 1992 21:58
24 lines
1881 bytes
In article <1992Sep28.202620.25342@linus.mitre.org> lewis@aera8700.mitre.org (Keith Lewis) writes:
>Find a pair of numbers, E and D, such that mod(E * D, (P-1)*(Q-1)) = 1
>You publish N and E as your public key.  To encrypt messages, calculate
>    Y = mod(X ** E, N), where X is the input data
>
>You keep N and D as your private key.  To decrypt messages, calculate
>    X = mod(Y ** D, N), where Y is the encrypted data
>
>If you have somebody's N and E, and you somehow factor N into P and Q, you
>must then find a D that works in the above equality (a non-trivial task, I
>think).  Then you can decrypt his/her messages.

Suppose you know P, Q, and E.  Then D is the multiplicative inverse of E
modulo (P-1)(Q-1).  Finding multiplicative inverses is in fact a trivial
operation if one keeps track of the quotients and remainders generated
while applying the Euclidean algorithm in GCD(E,(P-1)(Q-1)), but I'll
leave that as an exercise to the reader!

marshall
-- 
=========== 5 Joyce Lane, Woodbury, NY 11797, 516-364-9331,9379 ===========
============ PGP 2.0 Public Key available by finger or request ============
===== c/o Jack Gelfand,Psych Dept,Princeton U.,NJ 08544,609-258-2930 ======
= Original material(c) 1992, Marshall Flax <mgflax@phoenix.Princeton.EDU> =
Technical Details
Message-ID: <1992Sep28.215845.10593@Princeton.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!spool.mu.edu!yale.edu!jvnc.net!princeton!ernie.Princeton.EDU!mgflax
References: <1992Sep25.191759.25545@nevada.edu> <1992Sep28.202620.25342@linus.mitre.org>

Show Full Headers
Complete Article Headers
Newsgroups: sci.crypt,alt.security,alt.security.pgp
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!spool.mu.edu!yale.edu!jvnc.net!princeton!ernie.Princeton.EDU!mgflax
From: mgflax@ernie.Princeton.EDU (Marshall G. Flax)
Subject: Re: pgp2.0 - what is an appropriate key length?
Message-ID: <1992Sep28.215845.10593@Princeton.EDU>
Sender: news@Princeton.EDU (USENET News System)
Nntp-Posting-Host: ernie.princeton.edu
Organization: Princeton University
References: <1992Sep25.191759.25545@nevada.edu> <1992Sep28.202620.25342@linus.mitre.org>
Date: Mon, 28 Sep 1992 21:58:45 GMT
Lines: 24