memset(a->d,0,a->max*sizeof(a->d[0]));
memset(a->d,0,a->dmax*sizeof(a->d[0]));
void BN_clear_free(BIGNUM *a)	{	int i;	if (a == NULL) return;	if (a->d != NULL)		{		memset(a->d,0,a->max*sizeof(a->d[0]));		if (!(BN_get_flags(a,BN_FLG_STATIC_DATA)))			OPENSSL_free(a->d);		}	i=BN_get_flags(a,BN_FLG_MALLOCED);	memset(a,0,sizeof(BIGNUM));	if (i)		OPENSSL_free(a);	}