bn_lib.c (264265) | bn_lib.c (269682) |
---|---|
1/* crypto/bn/bn_lib.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 * --- 306 unchanged lines hidden (view full) --- 315 return(NULL); 316 } 317 a=A=(BN_ULONG *)OPENSSL_malloc(sizeof(BN_ULONG)*words); 318 if (A == NULL) 319 { 320 BNerr(BN_F_BN_EXPAND_INTERNAL,ERR_R_MALLOC_FAILURE); 321 return(NULL); 322 } | 1/* crypto/bn/bn_lib.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 * --- 306 unchanged lines hidden (view full) --- 315 return(NULL); 316 } 317 a=A=(BN_ULONG *)OPENSSL_malloc(sizeof(BN_ULONG)*words); 318 if (A == NULL) 319 { 320 BNerr(BN_F_BN_EXPAND_INTERNAL,ERR_R_MALLOC_FAILURE); 321 return(NULL); 322 } |
323#ifdef PURIFY 324 /* Valgrind complains in BN_consttime_swap because we process the whole 325 * array even if it's not initialised yet. This doesn't matter in that 326 * function - what's important is constant time operation (we're not 327 * actually going to use the data) 328 */ 329 memset(a, 0, sizeof(BN_ULONG)*words); 330#endif 331 |
|
323#if 1 324 B=b->d; 325 /* Check if the previous number needs to be copied */ 326 if (B != NULL) 327 { 328 for (i=b->top>>2; i>0; i--,A+=4,B+=4) 329 { 330 /* --- 548 unchanged lines hidden --- | 332#if 1 333 B=b->d; 334 /* Check if the previous number needs to be copied */ 335 if (B != NULL) 336 { 337 for (i=b->top>>2; i>0; i--,A+=4,B+=4) 338 { 339 /* --- 548 unchanged lines hidden --- |