37 2, 3, 5, 7, 11, 13, 17, 19,
38 23, 29, 31, 37, 41, 43, 47, 53,
39 59, 61, 67, 71, 73, 79, 83, 89,
40 97, 101, 103, 107, 109, 113, 127, 131,
41 137, 139, 149, 151, 157, 163, 167, 173,
42 179, 181, 191, 193, 197, 199, 223, 211,
43 227, 229, 233, 239, 241, 251
110 sprintf( buffer,
"gftables/%d", q);
114 strcat(gffilename,buffer);
115 inputfile = fopen( gffilename,
"r" );
120 sprintf( buffer,
"gftables/%d", q );
122 inputfile = fopen( buffer,
"r" );
124 sprintf( buffer,
"gftables/%d", q );
126 inputfile =
feFopen( buffer,
"r" );
131 fprintf(stderr,
"can not open GF(q) addition table: %s\n",gffilename);
140 STICKYASSERT( strcmp( buffer,
"@@ factory GF(q) table @@\n" ) == 0,
"illegal table" );
144 STICKYASSERT( success,
"illegal table (reading p and n)" );
145 sscanf( buffer,
"%d %d", &pFile, &nFile );
149 bufptr = (
char *)strchr( buffer,
';' ) + 2;
152 sscanf( bufptr,
"%d", &
degree );
153 bufptr = (
char *)strchr( bufptr,
' ' ) + 1;
157 sscanf( bufptr,
"%d",
mipo +
i );
158 bufptr = (
char *)strchr( bufptr,
' ' ) + 1;
172 STICKYASSERT( strlen( buffer ) - 1 == (
size_t)digs * 30,
"illegal table" );
175 while (
i <
gf_q &&
k < 30 )
192 (void)fclose( inputfile );
206 while ( a < gf_maxtable && i > 0 )