Re: [Newbie] Prime factorization question
From: Mxsmanic (mxsmanic_at_hotmail.com)
Date: 10/07/03
- Next message: Fernando: "Re: [Newbie] Prime factorization question"
- Previous message: Mok-Kong Shen: "Re: Are natural languages secure ciphers?"
- In reply to: Lorenzo Bolognini: "Re: [Newbie] Prime factorization question"
- Next in thread: Fernando: "Re: [Newbie] Prime factorization question"
- Reply: Fernando: "Re: [Newbie] Prime factorization question"
- Reply: Bill Unruh: "Re: [Newbie] Prime factorization question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 07 Oct 2003 17:10:37 +0200
Lorenzo Bolognini writes:
> So they are known and sure they are prooven and certificated primes
> (otherwise the cipher would be vulnerable to other attacks than plain
> bruteforcing) and they are finite so the number of possible primes that may
> generate the cipher is very much restricted...
PGP selects prime numbers at random from the set of all prime numbers
with appropriate lengths (n/2, where n is the desired length of the
modulus). The number of primes at any given length is indeed finite,
but it is very, very large for any modulus of the common sizes used in
PGP (384 bits and up), and so there is no real risk of the same primes
being selected for two different keys.
The primality of the selected random numbers is not conclusively
verified, but it is tested with an algorithm that provides a very high
degree of certainty with respect to their primality (additionally, if p
and q are not both prime, typically the encryption will fail in a fairly
obvious way quite quickly).
> well how many are they?
For a 1024-bit modulus, you need two 512-bit primes. If I remember
correctly, there are probably about 4 x 10^151 primes of that length or
less. So even with a 1024-bit modulus, we will never run out of unique
primes, and the possibility of getting two identical primes is, for all
practical purposes, zero.
I do wonder how many primes there are of _exactly_ n bits, but I'm not
sure how to calculate or estimate that. Also, it's important that the
primes be selected entirely at random.
-- Transpose hotmail and mxsmanic in my e-mail address to reach me directly.
- Next message: Fernando: "Re: [Newbie] Prime factorization question"
- Previous message: Mok-Kong Shen: "Re: Are natural languages secure ciphers?"
- In reply to: Lorenzo Bolognini: "Re: [Newbie] Prime factorization question"
- Next in thread: Fernando: "Re: [Newbie] Prime factorization question"
- Reply: Fernando: "Re: [Newbie] Prime factorization question"
- Reply: Bill Unruh: "Re: [Newbie] Prime factorization question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|