dsaparam.c (68651) | dsaparam.c (72613) |
---|---|
1/* apps/dsaparam.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 297 unchanged lines hidden (view full) --- 306 printf("\tif ((dsa=DSA_new()) == NULL) return(NULL);\n"); 307 printf("\tdsa->p=BN_bin2bn(dsa%d_p,sizeof(dsa%d_p),NULL);\n", 308 bits_p,bits_p); 309 printf("\tdsa->q=BN_bin2bn(dsa%d_q,sizeof(dsa%d_q),NULL);\n", 310 bits_p,bits_p); 311 printf("\tdsa->g=BN_bin2bn(dsa%d_g,sizeof(dsa%d_g),NULL);\n", 312 bits_p,bits_p); 313 printf("\tif ((dsa->p == NULL) || (dsa->q == NULL) || (dsa->g == NULL))\n"); | 1/* apps/dsaparam.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 297 unchanged lines hidden (view full) --- 306 printf("\tif ((dsa=DSA_new()) == NULL) return(NULL);\n"); 307 printf("\tdsa->p=BN_bin2bn(dsa%d_p,sizeof(dsa%d_p),NULL);\n", 308 bits_p,bits_p); 309 printf("\tdsa->q=BN_bin2bn(dsa%d_q,sizeof(dsa%d_q),NULL);\n", 310 bits_p,bits_p); 311 printf("\tdsa->g=BN_bin2bn(dsa%d_g,sizeof(dsa%d_g),NULL);\n", 312 bits_p,bits_p); 313 printf("\tif ((dsa->p == NULL) || (dsa->q == NULL) || (dsa->g == NULL))\n"); |
314 printf("\t\treturn(NULL);\n"); | 314 printf("\t\t{ DSA_free(dsa); return(NULL); }\n"); |
315 printf("\treturn(dsa);\n\t}\n"); 316 } 317 318 319 if (!noout) 320 { 321 if (outformat == FORMAT_ASN1) 322 i=i2d_DSAparams_bio(out,dsa); --- 55 unchanged lines hidden --- | 315 printf("\treturn(dsa);\n\t}\n"); 316 } 317 318 319 if (!noout) 320 { 321 if (outformat == FORMAT_ASN1) 322 i=i2d_DSAparams_bio(out,dsa); --- 55 unchanged lines hidden --- |