Lines Matching refs:val
246 BIGNUM *val[TABLE_SIZE];
266 val[0] = BN_CTX_get(ctx);
267 if(!aa || !val[0]) goto err;
282 if (!BN_nnmod(val[0],a,m,ctx)) goto err; /* 1 */
283 if (BN_is_zero(val[0]))
293 if (!BN_mod_mul_reciprocal(aa,val[0],val[0],&recp,ctx))
298 if(((val[i] = BN_CTX_get(ctx)) == NULL) ||
299 !BN_mod_mul_reciprocal(val[i],val[i-1],
354 if (!BN_mod_mul_reciprocal(r,r,val[wvalue>>1],&recp,ctx))
380 BIGNUM *val[TABLE_SIZE];
407 val[0] = BN_CTX_get(ctx);
408 if (!d || !r || !val[0]) goto err;
423 if (!BN_nnmod(val[0],a,m,ctx))
425 aa= val[0];
435 if (!BN_to_montgomery(val[0],aa,mont,ctx)) goto err; /* 1 */
440 if (!BN_mod_mul_montgomery(d,val[0],val[0],mont,ctx)) goto err; /* 2 */
444 if(((val[i] = BN_CTX_get(ctx)) == NULL) ||
445 !BN_mod_mul_montgomery(val[i],val[i-1],
501 if (!BN_mod_mul_montgomery(r,r,val[wvalue>>1],mont,ctx))
659 * val[i=2..2^winsize-1]. Powers are computed as a*a^(i-1)
883 BIGNUM *val[TABLE_SIZE];
902 val[0] = BN_CTX_get(ctx);
903 if(!d || !val[0]) goto err;
905 if (!BN_nnmod(val[0],a,m,ctx)) goto err; /* 1 */
906 if (BN_is_zero(val[0]))
916 if (!BN_mod_mul(d,val[0],val[0],m,ctx))
921 if(((val[i] = BN_CTX_get(ctx)) == NULL) ||
922 !BN_mod_mul(val[i],val[i-1],d,m,ctx))
976 if (!BN_mod_mul(r,r,val[wvalue>>1],m,ctx))