Loading CHANGES +3 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ Changes between 0.9.1c and 0.9.2 *) Get rid of remaining C++-style comments which strict C compilers hate. [Ralf S. Engelschall, pointed out by Carlos Amengual] *) Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not compiled in by default: it has problems with large keys. [Steve Henson] Loading crypto/bio/bss_sock.c +1 −1 Original line number Diff line number Diff line Loading @@ -385,7 +385,7 @@ int i; err=get_last_sys_error(); #endif #if defined(WINDOWS) && 0 /* more microsoft stupidity *//* perhaps not? Ben 4/1/99 */ #if defined(WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */ if ((i == -1) && (err == 0)) return(1); #endif Loading crypto/bn/exp.c +3 −3 Original line number Diff line number Diff line Loading @@ -43,12 +43,12 @@ char *argv[]; ms_time_get(start); for (i=0; i<num; i++) { //bn_mull(&r,&a,&b,&ctx); //BN_sqr(&r,&a,&ctx); /* bn_mull(&r,&a,&b,&ctx); */ /* BN_sqr(&r,&a,&ctx); */ BN_mod_exp_mont(&r,&a,&b,&c,&ctx,&mont); } ms_time_get(end); d=ms_time_diff(start,end)/* *50/33 /**/; d=ms_time_diff(start,end)/* *50/33 */; printf("%5d bit:%6.2f %6d %6.4f %4d m_set(%5.4f)\n",size, d,num,d/num,(int)((d/num)*mod),md/10.0); num/=8; Loading crypto/bn/test.c +5 −5 Original line number Diff line number Diff line Loading @@ -120,18 +120,18 @@ s0.max=bl.top; s1.max=bh.top; t3.top=(t2.top > words)?words:t2.top; t3.neg=t2.neg; t3.max=t3.top; // BN_print_fp(stdout,&s1); printf(" s1\n"); // BN_print_fp(stdout,&t2); printf(" middle value\n"); // BN_print_fp(stdout,&t3); printf(" low middle value\n"); /* BN_print_fp(stdout,&s1); printf(" s1\n"); */ /* BN_print_fp(stdout,&t2); printf(" middle value\n"); */ /* BN_print_fp(stdout,&t3); printf(" low middle value\n"); */ BN_sub(&t1,&s1,&t3); if (t1.neg) { //printf("neg fixup\n"); //BN_print_fp(stdout,&t1); printf(" before\n"); /*printf("neg fixup\n"); BN_print_fp(stdout,&t1); printf(" before\n"); */ BN_lshift(&t2,BN_value_one(),words*32); BN_add(&t1,&t2,&t1); BN_mask_bits(&t1,words*32); // BN_print_fp(stdout,&t1); printf(" after\n"); /* BN_print_fp(stdout,&t1); printf(" after\n"); */ } /* al*bl == high(al*bl)<<words+s0 */ BN_lshift(&t1,&t1,words*32); Loading crypto/comp/comp_err.c +1 −1 Original line number Diff line number Diff line /* lib//_err.c */ /* crypto/comp/comp_err.c */ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) * All rights reserved. * Loading Loading
CHANGES +3 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ Changes between 0.9.1c and 0.9.2 *) Get rid of remaining C++-style comments which strict C compilers hate. [Ralf S. Engelschall, pointed out by Carlos Amengual] *) Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not compiled in by default: it has problems with large keys. [Steve Henson] Loading
crypto/bio/bss_sock.c +1 −1 Original line number Diff line number Diff line Loading @@ -385,7 +385,7 @@ int i; err=get_last_sys_error(); #endif #if defined(WINDOWS) && 0 /* more microsoft stupidity *//* perhaps not? Ben 4/1/99 */ #if defined(WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */ if ((i == -1) && (err == 0)) return(1); #endif Loading
crypto/bn/exp.c +3 −3 Original line number Diff line number Diff line Loading @@ -43,12 +43,12 @@ char *argv[]; ms_time_get(start); for (i=0; i<num; i++) { //bn_mull(&r,&a,&b,&ctx); //BN_sqr(&r,&a,&ctx); /* bn_mull(&r,&a,&b,&ctx); */ /* BN_sqr(&r,&a,&ctx); */ BN_mod_exp_mont(&r,&a,&b,&c,&ctx,&mont); } ms_time_get(end); d=ms_time_diff(start,end)/* *50/33 /**/; d=ms_time_diff(start,end)/* *50/33 */; printf("%5d bit:%6.2f %6d %6.4f %4d m_set(%5.4f)\n",size, d,num,d/num,(int)((d/num)*mod),md/10.0); num/=8; Loading
crypto/bn/test.c +5 −5 Original line number Diff line number Diff line Loading @@ -120,18 +120,18 @@ s0.max=bl.top; s1.max=bh.top; t3.top=(t2.top > words)?words:t2.top; t3.neg=t2.neg; t3.max=t3.top; // BN_print_fp(stdout,&s1); printf(" s1\n"); // BN_print_fp(stdout,&t2); printf(" middle value\n"); // BN_print_fp(stdout,&t3); printf(" low middle value\n"); /* BN_print_fp(stdout,&s1); printf(" s1\n"); */ /* BN_print_fp(stdout,&t2); printf(" middle value\n"); */ /* BN_print_fp(stdout,&t3); printf(" low middle value\n"); */ BN_sub(&t1,&s1,&t3); if (t1.neg) { //printf("neg fixup\n"); //BN_print_fp(stdout,&t1); printf(" before\n"); /*printf("neg fixup\n"); BN_print_fp(stdout,&t1); printf(" before\n"); */ BN_lshift(&t2,BN_value_one(),words*32); BN_add(&t1,&t2,&t1); BN_mask_bits(&t1,words*32); // BN_print_fp(stdout,&t1); printf(" after\n"); /* BN_print_fp(stdout,&t1); printf(" after\n"); */ } /* al*bl == high(al*bl)<<words+s0 */ BN_lshift(&t1,&t1,words*32); Loading
crypto/comp/comp_err.c +1 −1 Original line number Diff line number Diff line /* lib//_err.c */ /* crypto/comp/comp_err.c */ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) * All rights reserved. * Loading