Lines Matching refs:p_res
114 struct long_int_num *p_res = NULL;
116 p_res = hvb_malloc(sizeof(struct long_int_num));
117 if (p_res == NULL) {
121 if (lin_calloc(p_res, word_len) > 0) {
122 hvb_free(p_res);
125 p_res->valid_word_len = 0;
126 return p_res;
259 unsigned long n_n0_i, struct long_int_num *p_res)
267 unsigned long *p_rd = p_res->p_uint;
297 p_res->valid_word_len = p_n->valid_word_len;
299 lin_sub(p_res, p_n);
304 unsigned long n_n0_i, struct long_int_num *p_res)
308 lin_clear(p_res);
311 montgomery_mul_add(p_a, p_b->p_uint[i], p_n, n_n0_i, p_res);
318 struct long_int_num *p_res = NULL;
336 p_res = lin_create(p_n->valid_word_len);
337 if (p_res == NULL) {
349 lin_copy(p_mr, p_res);
352 montgomery_mod_mul(p_res, p_res, p_n, n_n0_i, p_square);
354 montgomery_mod_mul(p_mr, p_square, p_n, n_n0_i, p_res);
356 lin_copy(p_square, p_res);
359 montgomery_mod_mul(p_res, p_res, p_n, n_n0_i, p_square);
360 montgomery_mod_mul(p_m, p_square, p_n, n_n0_i, p_res);
362 if (lin_compare(p_res, p_n) >= 0) {
363 lin_sub(p_res, p_n);
370 return p_res;