Deleted Added
full compact
dsatest.c (160815) dsatest.c (238405)
1/* crypto/dsa/dsatest.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 *

--- 155 unchanged lines hidden (view full) ---

164 BIO_printf(bio_err,"seed\n");
165 for (i=0; i<20; i+=4)
166 {
167 BIO_printf(bio_err,"%02X%02X%02X%02X ",
168 seed[i],seed[i+1],seed[i+2],seed[i+3]);
169 }
170 BIO_printf(bio_err,"\ncounter=%d h=%ld\n",counter,h);
171
1/* crypto/dsa/dsatest.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 *

--- 155 unchanged lines hidden (view full) ---

164 BIO_printf(bio_err,"seed\n");
165 for (i=0; i<20; i+=4)
166 {
167 BIO_printf(bio_err,"%02X%02X%02X%02X ",
168 seed[i],seed[i+1],seed[i+2],seed[i+3]);
169 }
170 BIO_printf(bio_err,"\ncounter=%d h=%ld\n",counter,h);
171
172 if (dsa == NULL) goto end;
173 DSA_print(bio_err,dsa,0);
174 if (counter != 105)
175 {
176 BIO_printf(bio_err,"counter should be 105\n");
177 goto end;
178 }
179 if (h != 2)
180 {

--- 37 unchanged lines hidden (view full) ---

218 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1)
219 ret=1;
220
221end:
222 if (!ret)
223 ERR_print_errors(bio_err);
224 if (dsa != NULL) DSA_free(dsa);
225 CRYPTO_cleanup_all_ex_data();
172 DSA_print(bio_err,dsa,0);
173 if (counter != 105)
174 {
175 BIO_printf(bio_err,"counter should be 105\n");
176 goto end;
177 }
178 if (h != 2)
179 {

--- 37 unchanged lines hidden (view full) ---

217 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1)
218 ret=1;
219
220end:
221 if (!ret)
222 ERR_print_errors(bio_err);
223 if (dsa != NULL) DSA_free(dsa);
224 CRYPTO_cleanup_all_ex_data();
226 ERR_remove_state(0);
225 ERR_remove_thread_state(NULL);
227 ERR_free_strings();
228 CRYPTO_mem_leaks(bio_err);
229 if (bio_err != NULL)
230 {
231 BIO_free(bio_err);
232 bio_err = NULL;
233 }
234#ifdef OPENSSL_SYS_NETWARE

--- 26 unchanged lines hidden ---
226 ERR_free_strings();
227 CRYPTO_mem_leaks(bio_err);
228 if (bio_err != NULL)
229 {
230 BIO_free(bio_err);
231 bio_err = NULL;
232 }
233#ifdef OPENSSL_SYS_NETWARE

--- 26 unchanged lines hidden ---