BN_CTX_init(&ctx); BN_CTX_start(&ctx); tmp = BN_CTX_get(&ctx);if(dh->priv_key ==NULL)gotoerr;if((dh->method_mont_p ==NULL) && (dh->flags & DH_FLAG_CACHE_MONT_P)) {if((dh->method_mont_p=(char*)BN_MONT_CTX_new()) !=NULL)if(!BN_MONT_CTX_set((BN_MONT_CTX *)...
kinv=NULL;/* Get random k */doif(!BN_rand_range(&k, dsa->q))gotoerr;while(BN_is_zero(&k));if((dsa->method_mont_p ==NULL) && (dsa->flags & DSA_FLAG_CACHE_MONT_P)) {if((dsa->method_mont_p=(char*)BN_MONT_CTX_new()) !=NULL)if(!BN_MONT_CTX_set((BN_MONT_CTX *...
mont_ctx =BN_MONT_CTX_set_locked(&rsa->mont_n, &rsa->lock, rsa->n, ctx);if(mont_ctx ==NULL) {gotoerr; } } ret = BN_BLINDING_create_param(NULL, e, n, ctx, mont_ctx);if(ret ==NULL) { OPENSSL_PUT_ERROR(RSA, ERR_R_BN_LIB);gotoerr; } err: BN_CTX_end(ctx);if(in_...