Subversion Repositories planix.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 33
Line 2... Line 2...
2
#include <libc.h>
2
#include <libc.h>
3
#include <mp.h>
3
#include <mp.h>
4
#include <libsec.h>
-
 
5
 
4
 
6
char *sfactors[] =
5
char *sfactors[] =
7
{	"3", "5", "17", "257", "641", "65537", "274177", "2424833", "6700417", "45592577",
6
{	"3", "5", "17", "257", "641", "65537", "274177", "2424833", "6700417", "45592577",
8
    "6487031809", "67280421310721", "1238926361552897", "59649589127497217",
7
    "6487031809", "67280421310721", "1238926361552897", "59649589127497217",
9
    "5704689200685129054721", "4659775785220018543264560743076778192897",
8
    "5704689200685129054721", "4659775785220018543264560743076778192897",
Line 50... Line 49...
50
{
49
{
51
	mpint *p, *k, *d, *b, *e, *x, *r;
50
	mpint *p, *k, *d, *b, *e, *x, *r;
52
	int i;
51
	int i;
53
 
52
 
54
	start = time(0);
53
	start = time(0);
55
	fmtinstall('B', mpconv);
54
	fmtinstall('B', mpfmt);
56
	mpsetminbits(2*Dbits);
55
	mpsetminbits(2*Dbits);
57
 
56
 
58
	x = mpnew(0);
57
	x = mpnew(0);
59
	e = mpnew(0);
58
	e = mpnew(0);
60
	r = mpnew(0);
59
	r = mpnew(0);