Home | History | Annotate | Download | only in apps

Lines Matching full:printf

251 		printf("p=");
253 printf("\ng=");
255 printf("\n");
257 printf("recommended private length=%ld\n",dh->length);
269 printf("p value is not prime\n");
271 printf("p value is not a safe prime\n");
273 printf("unable to check the generator value\n");
275 printf("the g value is not a generator\n");
277 printf("DH parameters appear to be ok.\n");
293 printf("static unsigned char dh%d_p[]={",bits);
296 if ((i%12) == 0) printf("\n\t");
297 printf("0x%02X,",data[i]);
299 printf("\n\t};\n");
302 printf("static unsigned char dh%d_g[]={",bits);
305 if ((i%12) == 0) printf("\n\t");
306 printf("0x%02X,",data[i]);
308 printf("\n\t};\n\n");
310 printf("DH *get_dh%d()\n\t{\n",bits);
311 printf("\tDH *dh;\n\n");
312 printf("\tif ((dh=DH_new()) == NULL) return(NULL);\n");
313 printf("\tdh->p=BN_bin2bn(dh%d_p,sizeof(dh%d_p),NULL);\n",
315 printf("\tdh->g=BN_bin2bn(dh%d_g,sizeof(dh%d_g),NULL);\n",
317 printf("\tif ((dh->p == NULL) || (dh->g == NULL))\n");
318 printf("\t\treturn(NULL);\n");
319 printf("\treturn(dh);\n\t}\n");