dsa_gen.c (306195) | dsa_gen.c (325337) |
---|---|
1/* crypto/dsa/dsa_gen.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 * --- 468 unchanged lines hidden (view full) --- 477 p = ret->p; 478 q = ret->q; 479 if (idx >= 0) 480 memcpy(seed_tmp, seed, seed_len); 481 goto g_only; 482 } else { 483 p = BN_CTX_get(ctx); 484 q = BN_CTX_get(ctx); | 1/* crypto/dsa/dsa_gen.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 * --- 468 unchanged lines hidden (view full) --- 477 p = ret->p; 478 q = ret->q; 479 if (idx >= 0) 480 memcpy(seed_tmp, seed, seed_len); 481 goto g_only; 482 } else { 483 p = BN_CTX_get(ctx); 484 q = BN_CTX_get(ctx); |
485 if (q == NULL) 486 goto err; |
|
485 } 486 487 if (!BN_lshift(test, BN_value_one(), L - 1)) 488 goto err; 489 for (;;) { 490 for (;;) { /* find q */ 491 unsigned char *pmd; 492 /* step 1 */ --- 259 unchanged lines hidden --- | 487 } 488 489 if (!BN_lshift(test, BN_value_one(), L - 1)) 490 goto err; 491 for (;;) { 492 for (;;) { /* find q */ 493 unsigned char *pmd; 494 /* step 1 */ --- 259 unchanged lines hidden --- |