~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/bn/bn_prime.pl

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051213213742-d0ydaylf80l16bj1
Tags: upstream-0.9.8a
ImportĀ upstreamĀ versionĀ 0.9.8a

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        $p+=2;
12
12
        $s=int(sqrt($p));
13
13
 
14
 
        for ($i=0; $primes[$i]<=$s; $i++)
 
14
        for ($i=0; defined($primes[$i]) && $primes[$i]<=$s; $i++)
15
15
                {
16
16
                next loop if (($p%$primes[$i]) == 0);
17
17
                }