~ubuntu-branches/ubuntu/maverick/nss/maverick

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/freebl/pqg.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-16 13:23:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616132347-311ysb8oep74b98y
Tags: 3.12.3-0ubuntu1
* new upstream release 3.12.3 RTM (NSS_3_12_3_RTM) (LP: #387751)
* adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
* needs nspr >= 4.7.4
  - update debian/control
* update 85_security_load.patch to latest debian version
  - update debian/patches/85_security_load.patch
* add new symbols for 3.12.3
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
/*
38
38
 * PQG parameter generation/verification.  Based on FIPS 186-1.
39
39
 *
40
 
 * $Id: pqg.c,v 1.15 2007/11/09 18:49:32 wtc%google.com Exp $
 
40
 * $Id: pqg.c,v 1.17 2009/03/26 23:16:37 glen.beasley%sun.com Exp $
41
41
 */
 
42
#ifdef FREEBL_NO_DEPEND
 
43
#include "stubs.h"
 
44
#endif
42
45
 
43
46
#include "prerr.h"
44
47
#include "secerr.h"
51
54
#include "mplogic.h"
52
55
#include "secmpi.h"
53
56
 
54
 
#define MAX_ITERATIONS 600  /* Maximum number of iterations of primegen */
 
57
#define MAX_ITERATIONS 1000  /* Maximum number of iterations of primegen */
55
58
#define PQG_Q_PRIMALITY_TESTS 18 /* from HAC table 4.4 */
56
59
#define PQG_P_PRIMALITY_TESTS 5  /* from HAC table 4.4 */
57
60