bn_mul.c (1.1.1.4) | bn_mul.c (1.1.1.5) |
---|---|
1/* crypto/bn/bn_mul.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 * --- 1069 unchanged lines hidden (view full) --- 1078 goto err; 1079 rr->top = top; 1080 bn_mul_normal(rr->d, a->d, al, b->d, bl); 1081 1082#if defined(BN_MUL_COMBA) || defined(BN_RECURSION) 1083 end: 1084#endif 1085 bn_correct_top(rr); | 1/* crypto/bn/bn_mul.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 * --- 1069 unchanged lines hidden (view full) --- 1078 goto err; 1079 rr->top = top; 1080 bn_mul_normal(rr->d, a->d, al, b->d, bl); 1081 1082#if defined(BN_MUL_COMBA) || defined(BN_RECURSION) 1083 end: 1084#endif 1085 bn_correct_top(rr); |
1086 if (r != rr) 1087 BN_copy(r, rr); | 1086 if (r != rr && BN_copy(r, rr) == NULL) 1087 goto err; 1088 |
1088 ret = 1; 1089 err: 1090 bn_check_top(r); 1091 BN_CTX_end(ctx); 1092 return (ret); 1093} 1094 1095void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb) --- 69 unchanged lines hidden --- | 1089 ret = 1; 1090 err: 1091 bn_check_top(r); 1092 BN_CTX_end(ctx); 1093 return (ret); 1094} 1095 1096void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb) --- 69 unchanged lines hidden --- |